|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.AbstractPane
nextapp.echo.ContentPane
net.sf.jzeno.echo.AbstractLayout
net.sf.jzeno.echo.DHLLayout
public class DHLLayout
A traditional application layout that places a mene bar at the top, etc..
Field Summary | |
---|---|
static long |
serialVersionUID
|
Fields inherited from class nextapp.echo.AbstractPane |
---|
PROPORTIONAL, RESIZABLE_CHANGED_PROPERTY, STYLE_RESIZABLE |
Constructor Summary | |
---|---|
DHLLayout()
|
Method Summary | |
---|---|
void |
addOnLoadScriptOnce(java.lang.String javaScriptExecutedOnceOnWindowLoad)
Often it is handy to send some javascript to the client browser for execution on the onLoad event of the page. |
void |
applyStyle(Style style)
Sets stylistic properties of this component based on a Style
object. |
Component |
createHeader(java.lang.String appName)
Creates a component that renders the application header. |
protected Application |
getApplication()
Returns the user's application instance, cast to its specific type. |
Component |
getContent()
Retrieves the current content component last set by setContent(). |
Font |
getFont()
Returns the font. |
Color |
getForeground()
Returns the foreground of the component. |
int |
getHeaderHeight()
Gets the height of the header in pixels. |
java.lang.String |
getLeftImageURL()
|
java.lang.String |
getRightImageURL()
|
Font |
getTitleFont()
|
Color |
getTitleForeground()
|
void |
reload()
|
static void |
reloadClassLoader()
|
void |
resetScheduledDowntime()
Remove any downtime messages set previously by Layout.setScheduledDowntime(String, Date, Integer) . |
void |
setContent(Component c)
When navigating from one screen to another, the application calls EchoSupport.setScreen() ( EchoSupport#setScreen(Component) ) and
this triggers among other things this method on your Layout component. |
void |
setErrors(java.util.List errorsAfterTranslation)
Sets the current list of errors. |
void |
setFont(Font font)
Sets the font for the main grid. |
void |
setForeground(Color foreground)
Sets the foreground color. |
void |
setHeaderHeight(int heightInPixels)
Sets the height of the header in pixels. |
void |
setLeftImageURL(java.lang.String leftImageURL)
Sets the left image URL. |
void |
setMessages(java.util.List messagesAfterTranslation)
Sets the current list of messages. |
void |
setRightImageURL(java.lang.String rightImageURL)
Sets the right image URL. |
void |
setScheduledDowntime(java.lang.String msg,
java.util.Date startTime,
java.lang.Integer duration)
One of the duties of a Layout component is to visualize downtime messages. |
void |
setTitleFont(Font titleFont)
Sets the font of the title. |
void |
setTitleForeground(Color titleForeground)
Sets the foregroung color of the title. |
void |
setWarnings(java.util.List warningsAfterTranslation)
Sets the current list of warnings. |
Methods inherited from class net.sf.jzeno.echo.AbstractLayout |
---|
addValidator, clearScrollPosition, getBean, getBeanClass, getDecorator, getNullObject, getProperty, getValidationErrors, getValidators, getValue, isBound, isMarkedInvalid, isReadOnly, isRequired, isValid, loadPersistentState, markInvalid, markValid, preRender, rebind, removeValidator, savePersistentState, setBean, setBeanClass, setDecorator, setNullObject, setProperty, setReadOnly, setRequired, setValue, traceValue |
Methods inherited from class nextapp.echo.AbstractPane |
---|
getHeight, getWidth, isResizable, setResizable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jzeno.echo.Layout |
---|
addCssFile, getCssFiles |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public DHLLayout()
Method Detail |
---|
public void reload()
public static void reloadClassLoader()
protected Application getApplication()
Returns the user's application instance, cast to its specific type.
public Component createHeader(java.lang.String appName)
Creates a component that renders the application header.
public void setContent(Component c)
Layout
When navigating from one screen to another, the application calls
EchoSupport.setScreen() (EchoSupport#setScreen(Component)
) and
this triggers among other things this method on your Layout component.
The typical implementation would be to replace a sub component of your
Layout with the new content component .
It is important to realize that this new content component is actually the screen that the user code is currently setting with setScreen, so it will typically be an instance of a subclass of the AbstractScreen class.
public Component getContent()
Layout
Retrieves the current content component last set by setContent(). Basically retrieves the Screen that was assigned as current screen to your Layout component.
public void setScheduledDowntime(java.lang.String msg, java.util.Date startTime, java.lang.Integer duration)
Layout
One of the duties of a Layout component is to visualize downtime messages. Typically this is a messages that is put up on the screen some time before the system (e.g. the application server we're running on,..) is taken down for maintenance/upgrading etc...
The application code can trigger a new downtime messages by calling
EchoSupport.setScheduledDowntime(String, Date, Integer)
.
A convenient way to satisfy this requirement is to include an instance of
the ErrorMessagesComponent
in your
layout class.
setScheduledDowntime
in interface Layout
setScheduledDowntime
in class AbstractLayout
public void resetScheduledDowntime()
Layout
Layout.setScheduledDowntime(String, Date, Integer)
.
resetScheduledDowntime
in interface Layout
resetScheduledDowntime
in class AbstractLayout
public void addOnLoadScriptOnce(java.lang.String javaScriptExecutedOnceOnWindowLoad)
Layout
Often it is handy to send some javascript to the client browser for execution on the onLoad event of the page. Examples of this include opening a popup that visualizes a URL outside of the application.
It is important to realize that the script(s) set via the method must only execute in the next rendering of the screen, and not in subsequent renderings.
A convenient way of satisfying this operation is adding an instance of
OnLoadScriptOnceComponent
.
public Font getFont()
Component
getFont
in interface Component
getFont
in class AbstractComponent
public void setFont(Font font)
Sets the font for the main grid.
setFont
in interface Component
setFont
in class AbstractComponent
font
- The new font of the component.public Color getForeground()
Component
getForeground
in interface Component
getForeground
in class AbstractComponent
public void setForeground(Color foreground)
Sets the foreground color.
setForeground
in interface Component
setForeground
in class AbstractComponent
foreground
- The new foreground color of the component.public java.lang.String getLeftImageURL()
public void setLeftImageURL(java.lang.String leftImageURL)
Sets the left image URL.
public java.lang.String getRightImageURL()
public void setRightImageURL(java.lang.String rightImageURL)
Sets the right image URL.
public Font getTitleFont()
public void setTitleFont(Font titleFont)
Sets the font of the title.
public Color getTitleForeground()
public void setTitleForeground(Color titleForeground)
Sets the foregroung color of the title.
public void setHeaderHeight(int heightInPixels)
Sets the height of the header in pixels.
public int getHeaderHeight()
Gets the height of the header in pixels.
public void applyStyle(Style style)
Component
Style
object. The version of this method in Component
will set
foreground and background colors and the font from the style if they are
present. Components should override this method if they allow more
properties to be set from a style object, and should call
super.applyStyle() if necessary.
applyStyle
in interface Component
applyStyle
in class ContentPane
style
- The style object from which to retrieve properties for this
Component
.Component.applyStyle(Style)
public void setErrors(java.util.List errorsAfterTranslation)
Layout
Sets the current list of errors. It is your duty to visualize all of the strings in this List to the users. Any i18n translation, parametrization and removing of duplicate messages will have been done for you.
public void setMessages(java.util.List messagesAfterTranslation)
Layout
Sets the current list of messages. It is your duty to visualize all of the strings in this List to the users. Any i18n translation, parametrization and removing of duplicate messages will have been done for you.
public void setWarnings(java.util.List warningsAfterTranslation)
Layout
Sets the current list of warnings. It is your duty to visualize all of the strings in this List to the users. Any i18n translation, parametrization and removing of duplicate messages will have been done for you.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |