|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gnu.glib.GObject | +--org.gnu.gtk.GtkObject | +--org.gnu.gtk.Widget | +--org.gnu.gtk.Container | +--org.gnu.gtk.Box | +--org.gnu.gtk.HBox | +--org.gnu.gnome.AppBar
The AppBar widget is a progress bar with a textual annotation.
Constructor Summary | |
AppBar(boolean hasProgress,
boolean hasStatus,
PreferencesType type)
Creates new instance of AppBar. |
|
AppBar(int handle)
Construct an AppBar using a handle to a native resource. |
Method Summary | |
void |
addListener(AppBarListener listener)
Register an object to handle AppBar events. |
void |
clearPrompt()
Clears any prompt. |
void |
clearStack()
Clears the stack. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
|
GtkEventType |
getEventType(java.lang.String signal)
|
ProgressBar |
getProgressBar()
Returns the progress bar used by AppBar. |
java.lang.String |
getResponse()
Gets the response to setPrompt |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
void |
popStack()
Pops the top status off the stack. |
void |
pushStack(java.lang.String status)
Pushes the status onto the stack. |
void |
refresh()
Refreshes to the current state of stack/default. |
void |
removeListener(AppBarListener listener)
Removes a listener |
void |
setProgressPercentage(double percentage)
Sets the percetage to show for progress. |
void |
setPrompt(java.lang.String prompt,
boolean modal)
Sets a prompt in the appbar and waits for a response. |
void |
setStatusDefault(java.lang.String status)
What to show when showing nothing else. |
void |
setStatusText(java.lang.String status)
Sets the status text without changing the widget state. |
Methods inherited from class org.gnu.gtk.Box |
getHomogeneous, getSpacing, packEnd, packEnd, packStart, packStart, reorderChild, setHomogeneous, setSpacing |
Methods inherited from class org.gnu.gtk.Container |
add, addListener, getBorderWidth, getResizeMode, remove, removeListener, resizeChildren, setBorderWidth, setResizeMode |
Methods inherited from class org.gnu.glib.GObject |
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AppBar(boolean hasProgress, boolean hasStatus, PreferencesType type)
public AppBar(int handle)
Method Detail |
public void clearPrompt()
setPrompt(String, boolean)
public void clearStack()
public ProgressBar getProgressBar()
public java.lang.String getResponse()
setPrompt(String, boolean)
public void popStack()
public void pushStack(java.lang.String status)
status
- The status text. Not null.public void refresh()
public void setProgressPercentage(double percentage)
public void setPrompt(java.lang.String prompt, boolean modal)
prompt
- The message used to prompt the user.modal
- True if all user input to the application should be blocked
until the user responds to the prompt or cancels.public void setStatusDefault(java.lang.String status)
status
- The text to use as default. Not null.public void setStatusText(java.lang.String status)
status
- The text to set. Not null.public static Type getType()
public void addListener(AppBarListener listener)
AppBarListener
public void removeListener(AppBarListener listener)
#addListener(AppBarListeners)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class Container
public GtkEventType getEventType(java.lang.String signal)
getEventType
in class Container
|
Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |