|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.gwt.ConfluenceDialog
public class ConfluenceDialog
Generates a dialog by reusing AJS.poup to build the popup panel and GWT UI binder to generate the contents of the dialog. Note that it relies on Confluence's bundled css for styling. It's html is modeled on the html produced by earlier dialogs and makes use of the same css classes.
Constructor Summary | |
---|---|
ConfluenceDialog(int width,
int height,
String id)
|
Method Summary | |
---|---|
com.google.gwt.user.client.ui.Button |
addButton(String text)
Adds a button to the bottom of the Dialog. |
com.google.gwt.user.client.ui.Button |
addButton(String id,
String text)
Adds a button to the bottom of the Dialog. |
com.google.gwt.event.dom.client.HasClickHandlers |
addTab(String id,
String title,
com.google.gwt.user.client.ui.Widget widget)
Adds a tab to the dialog. |
void |
hide()
|
boolean |
isCurrentPanel(com.google.gwt.user.client.ui.Widget w)
|
void |
remove()
|
void |
selectTab(int index)
Selects the tab with the specified index and displays its widget. |
void |
selectTab(String id)
Selects the tab with the specified id attribute. |
void |
setHeading(String text)
Sets the Dialog's title |
void |
setStatusText(String text)
Sets the text in the button left of the button panel for status messages. |
void |
show()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfluenceDialog(int width, int height, String id)
width
- Width of the dialogheight
- Height of the dialogid
- the if to place on the dialog's root DOM element.Method Detail |
---|
public void setHeading(String text)
text
- text to display as the title.public com.google.gwt.user.client.ui.Button addButton(String id, String text)
text
- The HTML caption of the buttonid
- The id to place on the button's root DOM element.
public com.google.gwt.user.client.ui.Button addButton(String text)
text
- The HTML caption of the button
public com.google.gwt.event.dom.client.HasClickHandlers addTab(String id, String title, com.google.gwt.user.client.ui.Widget widget)
title
- The title of the tab. This will appear in the tab list.widget
- The tab contents. This is usually a Panel.public void selectTab(int index)
index
- The index of the tab you want to select.public void selectTab(String id)
public boolean isCurrentPanel(com.google.gwt.user.client.ui.Widget w)
w
- Widget to check for.
public void setStatusText(String text)
public void show()
public void hide()
public void remove()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |