| net.mygwt.ui.client.widget.Component net.mygwt.ui.client.widget.Shell net.mygwt.ui.client.widget.Dialog
All known Subclasses: net.mygwt.ui.client.widget.MessageBox,
Dialog | public class Dialog extends Shell (Code) | | A Shell with a button bar.
- Styles:
- CLOSE, RESIZE, MODAL
- OK, OK_CANCEL, YES_NO, YES_NO_CANCEL
|
Field Summary | |
final public static int | CANCEL_ID Button id for a "Cancel" button (value 1). | final public static int | NO_ID Button id for a "No" button (value 3). | final public static int | OK_ID Button id for an "Ok" button (value 0). | final public static int | YES_ID Button id for a "Yes" button (value 2). |
Constructor Summary | |
public | Dialog() Creates a dialog that can be closed and resized. | public | Dialog(int style) Creates a new dialog with the given style. |
CANCEL_ID | final public static int CANCEL_ID(Code) | | Button id for a "Cancel" button (value 1).
|
NO_ID | final public static int NO_ID(Code) | | Button id for a "No" button (value 3).
|
OK_ID | final public static int OK_ID(Code) | | Button id for an "Ok" button (value 0).
|
YES_ID | final public static int YES_ID(Code) | | Button id for a "Yes" button (value 2).
|
Dialog | public Dialog()(Code) | | Creates a dialog that can be closed and resized.
|
Dialog | public Dialog(int style)(Code) | | Creates a new dialog with the given style.
Parameters: style - the style information |
addButton | public void addButton(Button button)(Code) | | Adds a button to the dialog.
Parameters: button - the button to be added |
addButton | public Button addButton(String text, SelectionListener listener)(Code) | | Adds a button to the dialog.
Parameters: text - the button text Parameters: listener - the click listener the new button |
afterRender | protected void afterRender()(Code) | | |
clearStatus | public void clearStatus()(Code) | | Clears the dialog's status area.
|
createButton | protected void createButton(int id, String text)(Code) | | |
doAttachChildren | protected void doAttachChildren()(Code) | | |
doDetachChildren | protected void doDetachChildren()(Code) | | |
getButtonBar | public ButtonBar getButtonBar()(Code) | | Returns the dialog's button bar.
the button bar |
getButtonById | public Button getButtonById(int buttonId)(Code) | | Returns the button with the specified button id.
Parameters: buttonId - the button id the button or null if no match |
getButtonPressed | public Button getButtonPressed()(Code) | | Returns the last pressed button.
the button or null if no button pressed |
getCloseOnButtonClick | public boolean getCloseOnButtonClick()(Code) | | Returns true if the dialog will be closed on any button
click.
the close on click state |
onButtonPressed | protected void onButtonPressed(BaseEvent be)(Code) | | Called after a button in the button bar is selected. Default implementation
closes the dialog if closeOnButtonClick = true.
Parameters: be - the base event |
onRender | protected void onRender()(Code) | | |
removeButton | public void removeButton(Button button)(Code) | | Removes the button.
Parameters: button - the button to be removed |
setCloseOnButtonClick | public void setCloseOnButtonClick(boolean closeOnButtonClick)(Code) | | Sets the close on button click state. When true , the dialog
will be closed after a button is clicked. Default value is
false .
Parameters: closeOnButtonClick - the close on button state |
setStatus | public void setStatus(String text, String iconStyle)(Code) | | Sets the dialog's status text and an optional icon.
Parameters: text - the status text Parameters: iconStyle - the icon style |
Methods inherited from net.mygwt.ui.client.widget.Component | public void addListener(int eventType, Listener listener)(Code)(Java Doc) public void addStyleName(String style)(Code)(Java Doc) public void addWidgetListener(WidgetListener listener)(Code)(Java Doc) protected void afterRender()(Code)(Java Doc) protected Component blur()(Code)(Java Doc) public void disable()(Code)(Java Doc) protected void disableContextMenu(boolean disable)(Code)(Java Doc) public void disableTextSelection(boolean disable)(Code)(Java Doc) public void dispose()(Code)(Java Doc) public void enable()(Code)(Java Doc) public void enableEvents(boolean enable)(Code)(Java Doc) public boolean fireEvent(int type)(Code)(Java Doc) public boolean fireEvent(int type, BaseEvent be)(Code)(Java Doc) public boolean fireEvent(int eventType, Widget widget, Widget item)(Code)(Java Doc) public boolean fireEvent(int eventType, Widget widget, Widget item, int index)(Code)(Java Doc) public Component focus()(Code)(Java Doc) public Rectangle getBounds()(Code)(Java Doc) public Rectangle getBounds(boolean content)(Code)(Java Doc) protected Menu getContextMenu()(Code)(Java Doc) public Object getData()(Code)(Java Doc) public Object getData(String key)(Code)(Java Doc) public String getDisabledStyle()(Code)(Java Doc) public Element getElement()(Code)(Java Doc) protected Element getFocusElement()(Code)(Java Doc) public int getHeight()(Code)(Java Doc) public int getHeight(boolean content)(Code)(Java Doc) public String getId()(Code)(Java Doc) public int getStyle()(Code)(Java Doc) public ToolTip getToolTip()(Code)(Java Doc) public int getWidth()(Code)(Java Doc) public int getWidth(boolean content)(Code)(Java Doc) public void hide()(Code)(Java Doc) public boolean isDisposed()(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public boolean isRendered()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) protected void onAttach()(Code)(Java Doc) public void onBaseEvent(BaseEvent be)(Code)(Java Doc) public void onBrowserEvent(Event event)(Code)(Java Doc) protected void onDestroy()(Code)(Java Doc) protected void onDetach()(Code)(Java Doc) protected void onDisable()(Code)(Java Doc) protected void onEnable()(Code)(Java Doc) protected void onHide()(Code)(Java Doc) protected void onHideContextMenu()(Code)(Java Doc) protected void onLoad()(Code)(Java Doc) protected void onRender()(Code)(Java Doc) protected void onResize(int width, int height)(Code)(Java Doc) protected void onRightClick(BaseEvent be)(Code)(Java Doc) protected void onShow()(Code)(Java Doc) protected void onShowContextMenu(int x, int y)(Code)(Java Doc) public void recalculate()(Code)(Java Doc) public void removeAllListeners()(Code)(Java Doc) public void removeFromParent()(Code)(Java Doc) public void removeListener(int eventType, Listener listener)(Code)(Java Doc) public void removeStyleName(String style)(Code)(Java Doc) public void removeWidgetListener(WidgetListener listener)(Code)(Java Doc) protected void render()(Code)(Java Doc) public void setBorders(boolean show)(Code)(Java Doc) public void setBounds(int x, int y, int width, int height)(Code)(Java Doc) public void setBounds(Rectangle rect)(Code)(Java Doc) protected void setContextMenu(Menu menu)(Code)(Java Doc) public void setData(Object data)(Code)(Java Doc) public void setData(String key, Object data)(Code)(Java Doc) public void setDisabledStyle(String style)(Code)(Java Doc) public void setElement(Element elem)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setHeight(int height)(Code)(Java Doc) public void setHeight(String height)(Code)(Java Doc) public void setId(String id)(Code)(Java Doc) public void setIntStyleAttribute(String attr, int value)(Code)(Java Doc) public void setPagePosition(int x, int y)(Code)(Java Doc) public void setPixelSize(int width, int height)(Code)(Java Doc) public void setSize(int width, int height)(Code)(Java Doc) public void setSize(String width, String height)(Code)(Java Doc) public void setStyleAttribute(String attr, String value)(Code)(Java Doc) public void setStyleName(String style)(Code)(Java Doc) public void setTitle(String title)(Code)(Java Doc) public void setToolTip(String text)(Code)(Java Doc) public void setToolTip(String title, String text)(Code)(Java Doc) public void setVisible(boolean visible)(Code)(Java Doc) public void setWidth(int width)(Code)(Java Doc) public void setWidth(String width)(Code)(Java Doc) public void show()(Code)(Java Doc) public void unhook(int type, EventListener listener)(Code)(Java Doc)
|
|
|