public class JebUI
extends java.lang.Object
This class contains methods to control the graphical user interface of JEB.
Modifier and Type | Class and Description |
---|---|
static class |
JebUI.ButtonGroupType
This enumeration represents button group types to be used in dialog boxes.
|
static class |
JebUI.IconType
This enumeration represents icon types to be used in dialog boxes.
|
Constructor and Description |
---|
JebUI(java.lang.Object ctx_data)
Internal constructor, do not use.
|
Modifier and Type | Method and Description |
---|---|
boolean |
decompileClass(java.lang.String partial_sig,
boolean focus)
Decompile a class and update the Java view accordingly.
|
int |
displayMessageBox(java.lang.String caption,
java.lang.String message,
JebUI.IconType icontype,
JebUI.ButtonGroupType bgtype)
Display a message box to the user.
|
java.lang.String |
displayQuestionBox(java.lang.String caption,
java.lang.String message,
java.lang.String default_text)
Display a message box asking for user input.
|
void |
enableStatusUpdates(boolean enabled)
Enable or disable status bar updates.
|
boolean |
focusView(View.Type viewtype)
Bring a specific view into focus.
|
java.lang.String |
getStatus()
Get the status bar string.
|
View |
getView(View.Type viewtype)
Retrieve a handle on a specific view.
|
boolean |
isViewVisible(View.Type viewtype)
Determine if the view is visible.
|
void |
setStatus(java.lang.String msg)
Set the status bar string.
|
public JebUI(java.lang.Object ctx_data)
Internal constructor, do not use.
Clients should not create instances of this class directly.
Use the JebInstance.getUI()
method to retrieve a reference on this object.
ctx_data
- opaque context datapublic View getView(View.Type viewtype)
Retrieve a handle on a specific view.
viewtype
- the view, refer to View.Type
public boolean focusView(View.Type viewtype)
Bring a specific view into focus.
Currently, this method is applicable to tabed views only.
Calling this method for CLASS_HIERARCHY
or CONSOLE
views will always return false.
viewtype
- the view to focus, refer to View.Type
public boolean isViewVisible(View.Type viewtype)
Determine if the view is visible.
Currently, this method is applicable to tabed views only.
Calling this method for CLASS_HIERARCHY
or CONSOLE
views will always return true.
viewtype
- the view to be checked, refer to View.Type
public void setStatus(java.lang.String msg)
Set the status bar string.
msg
- the new status stringpublic java.lang.String getStatus()
Get the status bar string.
public void enableStatusUpdates(boolean enabled)
Enable or disable status bar updates.
enabled
- if true, status bar can be updated, else, the status message is stickypublic boolean decompileClass(java.lang.String partial_sig, boolean focus)
Decompile a class and update the Java view accordingly.
partial_sig
- class name, original or effective, can be anything as long as it uniquely identifies a classfocus
- if true, set the focus on the Java view after decompilationpublic java.lang.String displayQuestionBox(java.lang.String caption, java.lang.String message, java.lang.String default_text)
Display a message box asking for user input.
caption
- title for the message boxmessage
- information, should be a single line of textdefault_text
- optional default input value, will be selected if providedpublic int displayMessageBox(java.lang.String caption, java.lang.String message, JebUI.IconType icontype, JebUI.ButtonGroupType bgtype)
Display a message box to the user.
caption
- title for the message boxmessage
- text to be displayed, can be multi-lineicontype
- icon to be displayed in the message box (default: none)bgtype
- button to be provided in the message box (default: OK)