|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.cruxframework.crux.core.client.screen.views.ViewContainer
org.cruxframework.crux.core.client.screen.views.ParameterizedViewContainer
org.cruxframework.crux.core.client.screen.views.SingleViewContainer
org.cruxframework.crux.widgets.client.dialogcontainer.DialogViewContainer
public class DialogViewContainer
A View Container that render its views inside a floating dialog box.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary | |
|---|---|
static String |
DEFAULT_STYLE_NAME
|
| Fields inherited from class org.cruxframework.crux.core.client.screen.views.SingleViewContainer |
|---|
activeView |
| Fields inherited from class org.cruxframework.crux.core.client.screen.views.ViewContainer |
|---|
logger, views |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
DialogViewContainer()
Default Constructor. |
|
DialogViewContainer(boolean closeable,
boolean modal)
Constructor. |
|
| Method Summary | |
|---|---|
void |
center()
Open the dialog container and center it on the screen. |
void |
closeDialog()
Close the container dialog. |
boolean |
closeDialog(boolean unloadView)
Close the container dialog. |
static DialogViewContainer |
createDialog(String viewName)
Create a new DialogViewContainer and load the given view into the container |
static DialogViewContainer |
createDialog(String viewName,
String viewId,
boolean closeable)
Create a new DialogViewContainer and load the given view into the container. |
static DialogViewContainer |
createDialog(String viewName,
String viewId,
boolean closeable,
boolean modal,
String width,
String height,
int left,
int top)
Create a new DialogViewContainer and load the given view into the container. |
static DialogViewContainer |
createDialog(String viewName,
String viewId,
boolean closeable,
boolean modal,
String width,
String height,
int left,
int top,
Object parameter)
Create a new DialogViewContainer and load the given view into the container. |
protected boolean |
doAdd(org.cruxframework.crux.core.client.screen.views.View view,
boolean lazy,
Object parameter)
|
protected boolean |
doRemove(org.cruxframework.crux.core.client.screen.views.View view,
boolean skipEvents)
|
protected com.google.gwt.user.client.ui.Panel |
getContainerPanel()
|
protected com.google.gwt.user.client.ui.Panel |
getContainerPanel(org.cruxframework.crux.core.client.screen.views.View view)
|
org.cruxframework.crux.core.client.screen.views.View |
getView()
Read the current view loaded into this container. |
protected void |
handleViewTitle(String title,
com.google.gwt.user.client.ui.Panel containerPanel,
String viewId)
|
boolean |
isModal()
Read the modal property value. |
boolean |
isUnloadViewOnClose()
Read the unloadViewOnClose property value. |
void |
openDialog()
Open the container dialog box. |
static void |
openDialog(String viewName)
Create a dialog container, load the given view into the container and open the dialog box. |
static void |
openDialog(String viewName,
String viewId,
boolean closeable)
Create a dialog container, load the given view into the container and open the dialog box. |
void |
setHeight(String height)
Set the dialog height |
void |
setModal(boolean modal)
Write the modal property value. |
void |
setPosition(int left,
int top)
Set the dialog position |
void |
setSize(String width,
String height)
Set the dialog dimensions. |
void |
setStyleDependentName(String styleSuffix,
boolean add)
|
void |
setStyleName(String style)
|
void |
setStyleName(String style,
boolean add)
|
void |
setStylePrimaryName(String style)
|
void |
setUnloadViewOnClose(boolean unloadViewOnClose)
Write the unloadViewOnClose property value. |
void |
setWidth(String width)
Set the dialog width |
| Methods inherited from class org.cruxframework.crux.core.client.screen.views.SingleViewContainer |
|---|
activate, deactivate, getActiveView, hasHistoryHandlers, hasOrientationChangeHandlers, hasResizeHandlers, hasWindowCloseHandlers, hasWindowClosingHandlers, notifyViewsAboutHistoryChange, notifyViewsAboutOrientationChange, notifyViewsAboutWindowClose, notifyViewsAboutWindowClosing, notifyViewsAboutWindowResize |
| Methods inherited from class org.cruxframework.crux.core.client.screen.views.ParameterizedViewContainer |
|---|
add, loadView, showView |
| Methods inherited from class org.cruxframework.crux.core.client.screen.views.ViewContainer |
|---|
add, addLazy, addLazy, addLazy, addView, adoptView, bindToDOM, clear, createView, createView, getMainWidget, getView, getViewFactory, loadAndRenderView, loadView, loadView, remove, remove, renderView, showView, showView, showView, unbindToDOM |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_STYLE_NAME
| Constructor Detail |
|---|
public DialogViewContainer()
public DialogViewContainer(boolean closeable,
boolean modal)
closeable - if true, a close button will be present at to top of dialog boxmodal - if true, a modal dialog will be created| Method Detail |
|---|
public static void openDialog(String viewName)
viewName - name of the view to be opened
public static void openDialog(String viewName,
String viewId,
boolean closeable)
viewName - name of the view to be openedviewId - ID to be used to identify the opened viewcloseable - if true, a close button will be present at to top of dialog boxpublic static DialogViewContainer createDialog(String viewName)
viewName - name of the view to be loaded
public static DialogViewContainer createDialog(String viewName,
String viewId,
boolean closeable)
viewName - name of the view to be loadedviewId - ID to be used to identify the opened viewcloseable - if true, a close button will be present at to top of dialog box
public static DialogViewContainer createDialog(String viewName,
String viewId,
boolean closeable,
boolean modal,
String width,
String height,
int left,
int top)
viewName - name of the view to be loadedviewId - ID to be used to identify the opened viewcloseable - if true, a close button will be present at to top of dialog boxmodal - if true, a modal dialog will be createdwidth - dialog box widthheight - dialog box heightleft - left position of the dialog boxtop - top position of the dialog box
public static DialogViewContainer createDialog(String viewName,
String viewId,
boolean closeable,
boolean modal,
String width,
String height,
int left,
int top,
Object parameter)
viewName - name of the view to be loadedviewId - ID to be used to identify the opened viewcloseable - if true, a close button will be present at to top of dialog boxmodal - if true, a modal dialog will be createdwidth - dialog box widthheight - dialog box heightleft - left position of the dialog boxtop - top position of the dialog boxparameter - any object you want to pass as parameter to the view's activate and load event
public boolean isUnloadViewOnClose()
public void setUnloadViewOnClose(boolean unloadViewOnClose)
unloadViewOnClose - unloadViewOnClose property valuepublic void setModal(boolean modal)
modal - modal property valuepublic boolean isModal()
public void setSize(String width,
String height)
setSize in class com.google.gwt.user.client.ui.UIObjectwidth - dialog widthheight - dialog heightpublic void setWidth(String width)
setWidth in class com.google.gwt.user.client.ui.UIObjectwidth - dialog widthpublic void setHeight(String height)
setHeight in class com.google.gwt.user.client.ui.UIObjectwidth - dialog height
public void setPosition(int left,
int top)
left - dialog left positiontop - dialog top positionpublic void setStyleName(String style)
setStyleName in class com.google.gwt.user.client.ui.UIObject
public void setStyleDependentName(String styleSuffix,
boolean add)
setStyleDependentName in class com.google.gwt.user.client.ui.UIObject
public void setStyleName(String style,
boolean add)
setStyleName in class com.google.gwt.user.client.ui.UIObjectpublic void setStylePrimaryName(String style)
setStylePrimaryName in class com.google.gwt.user.client.ui.UIObjectpublic void center()
public org.cruxframework.crux.core.client.screen.views.View getView()
public void openDialog()
public void closeDialog()
public boolean closeDialog(boolean unloadView)
If this view can not be unloaded (its unload event handler cancel the event), this method does not close the container and returns false.
unloadView - if true, unload the current view before close the container.
protected boolean doAdd(org.cruxframework.crux.core.client.screen.views.View view,
boolean lazy,
Object parameter)
doAdd in class org.cruxframework.crux.core.client.screen.views.ViewContainer
protected boolean doRemove(org.cruxframework.crux.core.client.screen.views.View view,
boolean skipEvents)
doRemove in class org.cruxframework.crux.core.client.screen.views.ViewContainerprotected com.google.gwt.user.client.ui.Panel getContainerPanel(org.cruxframework.crux.core.client.screen.views.View view)
getContainerPanel in class org.cruxframework.crux.core.client.screen.views.ViewContainerprotected com.google.gwt.user.client.ui.Panel getContainerPanel()
protected void handleViewTitle(String title,
com.google.gwt.user.client.ui.Panel containerPanel,
String viewId)
handleViewTitle in class org.cruxframework.crux.core.client.screen.views.ViewContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||