Package org.jrd.frontend.frame.main
Class MainFrameView
- java.lang.Object
-
- org.jrd.frontend.frame.main.MainFrameView
-
public class MainFrameView extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classMainFrameView.LocalVmListMouseListenerprivate static classMainFrameView.UndraggableJListCustom JList that disables selection with mouse drag.
-
Field Summary
Fields Modifier and Type Field Description private static java.awt.DimensionBUTTON_SIZEprivate BytecodeDecompilerViewbytecodeDecompilerViewprivate java.awt.CardLayoutcardLayoutprivate javax.swing.JPanelcenterPanelprivate static java.lang.StringDECOMPILER_CARDprivate javax.swing.JButtonforceNewAttachstatic java.lang.StringFS_VM_COMMANDprivate javax.swing.JButtonfsVmAddButtonprivate javax.swing.JPanelfsVmButtonPanelprivate javax.swing.JPanelfsVmLabelPanelprivate javax.swing.JList<VmInfo>fsVmListprivate javax.swing.JPanelfsVmPanelprivate javax.swing.JButtonfsVmRemoveButtonprivate javax.swing.JScrollPanefsVmScrollPaneprivate java.awt.event.ActionListenerhaltAgentListenerprivate javax.swing.JMenuItemjMenuAgentsprivate javax.swing.JMenujMenuConfigprivate javax.swing.JMenujMenuConnectprivate javax.swing.JMenujMenuHelpprivate javax.swing.JMenuItemjMenuItemAboutprivate javax.swing.JMenuItemjMenuItemLicenseprivate javax.swing.JMenuItemjMenuItemLogprivate javax.swing.JMenuItemjMenuItemNewConnectionprivate javax.swing.JMenuItemjMenuItemUsageprivate javax.swing.JMenuItemjMenuOverridesprivate javax.swing.JMenuItemjMenuPluginEditorprivate javax.swing.JMenuItemjMenuSettingsprivate javax.swing.JMenuItemjMenuStandaloneBytemanAgentprivate java.awt.event.ActionListenerkillAllSessionprivate javax.swing.JPanellocalVmButtonPanelprivate javax.swing.JPanellocalVmLabelPanelprivate javax.swing.JList<VmInfo>localVmListprivate javax.swing.JPanellocalVmPanelprivate javax.swing.JButtonlocalVmRefreshButtonprivate javax.swing.JScrollPanelocalVmScrollPaneprivate javax.swing.JFramemainFrameprivate javax.swing.JPanelmainPanelprivate java.lang.RunnablemanageAgentsprivate java.lang.RunnablemanageOverridesprivate javax.swing.JMenuBarmenuBarprivate java.awt.event.ActionListenernewConnectionDialogListenerprivate java.awt.event.ActionListenernewFsVmDialogListenerprivate javax.swing.JMenuItemopenEditorprivate java.awt.event.ActionListenerpluginConfigurationEditorListenerprivate java.awt.event.ActionListenerrefreshLocalVmsListenerstatic java.lang.StringREMOTE_VM_ACTIONprivate javax.swing.JButtonremoteVmAddButtonprivate javax.swing.JPanelremoteVmButtonPanelprivate javax.swing.JCheckBoxremoteVmDetachprivate javax.swing.JPanelremoteVmLabelPanelprivate javax.swing.JList<VmInfo>remoteVmListprivate javax.swing.JPanelremoteVmPanelprivate javax.swing.JButtonremoteVmRemoveButtonprivate javax.swing.JScrollPaneremoteVmScrollPaneprivate java.awt.event.ActionListenerremoveVmDialogListenerprivate javax.swing.JTabbedPanetabbedPaneprivate java.awt.event.ActionListenervmChangingListenerprivate static java.lang.StringWELCOME_CARDprivate static java.lang.StringWELCOME_MESSAGEprivate javax.swing.JTextAreawelcomeJTextAreaprivate javax.swing.JPanelwelcomePanel
-
Constructor Summary
Constructors Constructor Description MainFrameView()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearLocalListSelection()voidclearRemoteListSelection()private static java.lang.Stringdecostatst(VmDecompilerStatus vmDecompilerStatus)BytecodeDecompilerViewgetBytecodeDecompilerView()private java.util.Optional<java.lang.String>getClassloader()private java.util.Optional<java.lang.String>getLoaderForPopup()javax.swing.JFramegetMainFrame()private java.lang.StringgetSelectedVm()private voidsendHaltRequest()voidsetFsVmList(VmInfo[] vmInfos)voidsetHaltAgentListener(java.awt.event.ActionListener listener)private voidsetImageIcon()voidsetKillAllSessionListener(java.awt.event.ActionListener listener)voidsetLocalVmList(VmInfo[] vmInfos)voidsetMaintitle(java.lang.String name)voidsetManageAgents(java.lang.Runnable action)voidsetManageOverrides(java.lang.Runnable action)voidsetNewConnectionDialogListener(java.awt.event.ActionListener listener)voidsetNewFsVmDialogListener(java.awt.event.ActionListener newFsVmDialogListener)voidsetPluginConfigurationEditorListener(java.awt.event.ActionListener pluginConfigurationEditorListener)voidsetRefreshLocalVmsListener(java.awt.event.ActionListener listener)voidsetRemoteVmList(VmInfo[] vmInfos)voidsetRemoveVmDialogListener(java.awt.event.ActionListener removeVmDialogListener)voidsetVmChanging(java.awt.event.ActionListener listener)private voidsetVmList(javax.swing.JList<VmInfo> vmList, VmInfo[] vmInfos)voidswitchPanel(boolean isVmSelected)Switches centerPanel between decompiler view and welcome view.voidswitchTabsToRemoteVms()
-
-
-
Field Detail
-
FS_VM_COMMAND
public static final java.lang.String FS_VM_COMMAND
- See Also:
- Constant Field Values
-
REMOTE_VM_ACTION
public static final java.lang.String REMOTE_VM_ACTION
- See Also:
- Constant Field Values
-
mainFrame
private javax.swing.JFrame mainFrame
-
mainPanel
private javax.swing.JPanel mainPanel
-
tabbedPane
private javax.swing.JTabbedPane tabbedPane
-
localVmPanel
private javax.swing.JPanel localVmPanel
-
localVmLabelPanel
private javax.swing.JPanel localVmLabelPanel
-
forceNewAttach
private javax.swing.JButton forceNewAttach
-
localVmButtonPanel
private javax.swing.JPanel localVmButtonPanel
-
localVmRefreshButton
private javax.swing.JButton localVmRefreshButton
-
localVmScrollPane
private javax.swing.JScrollPane localVmScrollPane
-
localVmList
private javax.swing.JList<VmInfo> localVmList
-
remoteVmPanel
private javax.swing.JPanel remoteVmPanel
-
remoteVmLabelPanel
private javax.swing.JPanel remoteVmLabelPanel
-
remoteVmButtonPanel
private javax.swing.JPanel remoteVmButtonPanel
-
remoteVmDetach
private javax.swing.JCheckBox remoteVmDetach
-
remoteVmAddButton
private javax.swing.JButton remoteVmAddButton
-
remoteVmRemoveButton
private javax.swing.JButton remoteVmRemoveButton
-
remoteVmScrollPane
private javax.swing.JScrollPane remoteVmScrollPane
-
remoteVmList
private javax.swing.JList<VmInfo> remoteVmList
-
fsVmPanel
private javax.swing.JPanel fsVmPanel
-
fsVmLabelPanel
private javax.swing.JPanel fsVmLabelPanel
-
fsVmButtonPanel
private javax.swing.JPanel fsVmButtonPanel
-
fsVmAddButton
private javax.swing.JButton fsVmAddButton
-
fsVmRemoveButton
private javax.swing.JButton fsVmRemoveButton
-
fsVmScrollPane
private javax.swing.JScrollPane fsVmScrollPane
-
fsVmList
private javax.swing.JList<VmInfo> fsVmList
-
centerPanel
private javax.swing.JPanel centerPanel
-
welcomePanel
private javax.swing.JPanel welcomePanel
-
welcomeJTextArea
private javax.swing.JTextArea welcomeJTextArea
-
bytecodeDecompilerView
private BytecodeDecompilerView bytecodeDecompilerView
-
cardLayout
private java.awt.CardLayout cardLayout
-
menuBar
private javax.swing.JMenuBar menuBar
-
jMenuConnect
private javax.swing.JMenu jMenuConnect
-
jMenuItemNewConnection
private javax.swing.JMenuItem jMenuItemNewConnection
-
jMenuStandaloneBytemanAgent
private javax.swing.JMenuItem jMenuStandaloneBytemanAgent
-
openEditor
private javax.swing.JMenuItem openEditor
-
jMenuConfig
private javax.swing.JMenu jMenuConfig
-
jMenuSettings
private javax.swing.JMenuItem jMenuSettings
-
jMenuPluginEditor
private javax.swing.JMenuItem jMenuPluginEditor
-
jMenuOverrides
private javax.swing.JMenuItem jMenuOverrides
-
jMenuAgents
private javax.swing.JMenuItem jMenuAgents
-
jMenuHelp
private javax.swing.JMenu jMenuHelp
-
jMenuItemAbout
private javax.swing.JMenuItem jMenuItemAbout
-
jMenuItemUsage
private javax.swing.JMenuItem jMenuItemUsage
-
jMenuItemLicense
private javax.swing.JMenuItem jMenuItemLicense
-
jMenuItemLog
private javax.swing.JMenuItem jMenuItemLog
-
vmChangingListener
private java.awt.event.ActionListener vmChangingListener
-
refreshLocalVmsListener
private java.awt.event.ActionListener refreshLocalVmsListener
-
newConnectionDialogListener
private java.awt.event.ActionListener newConnectionDialogListener
-
newFsVmDialogListener
private java.awt.event.ActionListener newFsVmDialogListener
-
removeVmDialogListener
private java.awt.event.ActionListener removeVmDialogListener
-
pluginConfigurationEditorListener
private java.awt.event.ActionListener pluginConfigurationEditorListener
-
haltAgentListener
private java.awt.event.ActionListener haltAgentListener
-
killAllSession
private java.awt.event.ActionListener killAllSession
-
manageOverrides
private java.lang.Runnable manageOverrides
-
manageAgents
private java.lang.Runnable manageAgents
-
BUTTON_SIZE
private static final java.awt.Dimension BUTTON_SIZE
-
WELCOME_CARD
private static final java.lang.String WELCOME_CARD
- See Also:
- Constant Field Values
-
DECOMPILER_CARD
private static final java.lang.String DECOMPILER_CARD
- See Also:
- Constant Field Values
-
WELCOME_MESSAGE
private static final java.lang.String WELCOME_MESSAGE
-
-
Method Detail
-
getMainFrame
public javax.swing.JFrame getMainFrame()
-
getBytecodeDecompilerView
public BytecodeDecompilerView getBytecodeDecompilerView()
-
setHaltAgentListener
public void setHaltAgentListener(java.awt.event.ActionListener listener)
-
setKillAllSessionListener
public void setKillAllSessionListener(java.awt.event.ActionListener listener)
-
setVmChanging
public void setVmChanging(java.awt.event.ActionListener listener)
-
setMaintitle
public void setMaintitle(java.lang.String name)
-
getSelectedVm
private java.lang.String getSelectedVm()
-
decostatst
private static java.lang.String decostatst(VmDecompilerStatus vmDecompilerStatus)
-
setImageIcon
private void setImageIcon()
-
getClassloader
private java.util.Optional<java.lang.String> getClassloader()
-
clearLocalListSelection
public void clearLocalListSelection()
-
clearRemoteListSelection
public void clearRemoteListSelection()
-
switchPanel
public void switchPanel(boolean isVmSelected)
Switches centerPanel between decompiler view and welcome view.- Parameters:
isVmSelected- True - Decompiler view / False - Welcome view
-
sendHaltRequest
private void sendHaltRequest()
-
setRefreshLocalVmsListener
public void setRefreshLocalVmsListener(java.awt.event.ActionListener listener)
-
setNewConnectionDialogListener
public void setNewConnectionDialogListener(java.awt.event.ActionListener listener)
-
setNewFsVmDialogListener
public void setNewFsVmDialogListener(java.awt.event.ActionListener newFsVmDialogListener)
-
setRemoveVmDialogListener
public void setRemoveVmDialogListener(java.awt.event.ActionListener removeVmDialogListener)
-
setPluginConfigurationEditorListener
public void setPluginConfigurationEditorListener(java.awt.event.ActionListener pluginConfigurationEditorListener)
-
setLocalVmList
public void setLocalVmList(VmInfo[] vmInfos)
-
setRemoteVmList
public void setRemoteVmList(VmInfo[] vmInfos)
-
setFsVmList
public void setFsVmList(VmInfo[] vmInfos)
-
setManageOverrides
public void setManageOverrides(java.lang.Runnable action)
-
setManageAgents
public void setManageAgents(java.lang.Runnable action)
-
switchTabsToRemoteVms
public void switchTabsToRemoteVms()
-
getLoaderForPopup
private java.util.Optional<java.lang.String> getLoaderForPopup()
-
-