org.gnu.gnome
public class AppBar extends HBox
Constructor Summary | |
---|---|
AppBar(boolean hasProgress, boolean hasStatus, PreferencesType type)
Creates new instance of AppBar. | |
AppBar(Handle 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. |
static AppBar | getAppBar(Handle handle)
Internal static factory method to be used by Java-Gnome only. |
Class | getEventListenerClass(String signal) |
EventType | getEventType(String signal) |
ProgressBar | getProgressBar()
Returns the progress bar used by AppBar.
|
String | getResponse()
Gets the response to setPrompt
|
StatusBar | getStatusBar()
Return the StatusBar widget contained in this AppBar. |
static Type | getType()
Retrieve the runtime type used by the GLib library. |
void | popStack()
Pops the top status off the stack. |
void | pushStack(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(String prompt, boolean modal)
Sets a prompt in the appbar and waits for a response. |
void | setStatusDefault(String status)
What to show when showing nothing else. |
void | setStatusText(String status)
Sets the status text without changing the widget state. |
See Also: AppBarListener
See Also: AppBar
Returns: The progress bar.
Returns: The user's response.
See Also: AppBar
Parameters: status The status text. Not null.
See Also: addListener
Parameters: 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.
Parameters: status The text to use as default. Not null.
Parameters: status The text to set. Not null.