net.sf.jzeno.echo.components
Class Screen

java.lang.Object
  extended by nextapp.echo.Grid
      extended by net.sf.jzeno.echo.components.DynaGrid
          extended by net.sf.jzeno.echo.components.Screen
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, BindingTarget, PropertyComponent, EventSink, Component, ComponentPeer, FastComponent
Direct Known Subclasses:
AbstractPropertiesFileScreen, AbstractScreen, BlankScreen, CalibrationScreen, GalleryScreen, GeneralSettingsScreen, GlobalExceptionScreen, HeapInspectorScreen, JamonScreen, LogoffScreen, MenuEditorScreen, MockScreen, NewsManagerScreen, OptimisticLockExceptionScreen, PersistencySettingsScreen, ScrapScreen, SecondLevelCacheScreen, SessionOverviewScreen, StyleManagerScreen, UnitTestScreen, WelcomeScreen

public abstract class Screen
extends DynaGrid
implements EventSink, BindingTarget

Base class for all screens. It derives from DynaGrid, so the top-level layout of all screens is a grid. It also serves as a dispatcher for action events. If an action event is emitted by a component that is wired up to the screen class, this class will use the actionCommand as the name of a function in the deriving class to call. Such a function must have 1 argument, of type ActionEvent.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.jzeno.echo.components.DynaGrid
DynaGrid.Cell
 
Nested classes/interfaces inherited from class nextapp.echo.Grid
Grid.ExternalState, Grid.GridCellOverlapException
 
Field Summary
protected  HeapInspectorSupport his
           
 
Fields inherited from class nextapp.echo.Grid
BORDER_COLOR_CHANGED_PROPERTY, BORDER_SIZE_CHANGED_PROPERTY, CELL_LAYOUT_ORIENTATION_CHANGED_PROPERTY, CELL_LAYOUT_ORIENTATION_HORIZONTAL, CELL_LAYOUT_ORIENTATION_VERTICAL, CELL_MARGIN_CHANGED_PROPERTY, COLUMN_DELETED_PROPERTY, COLUMN_INSERTED_PROPERTY, COLUMN_WIDTH_CHANGED_PROPERTY, COLUMNS_CHANGED_PROPERTY, HEIGHT_CHANGED_PROPERTY, HEIGHT_UNITS_CHANGED_PROPERTY, PERCENT_INDIVIDUAL_PIXEL_TOTAL_UNITS, PERCENT_UNITS, PIXEL_UNITS, ROW_DELETED_PROPERTY, ROW_HEIGHT_CHANGED_PROPERTY, ROW_INSERTED_PROPERTY, ROWS_CHANGED_PROPERTY, STYLE_BORDER_COLOR, STYLE_BORDER_SIZE, STYLE_CELL_MARGIN, STYLE_COLUMN_WIDTHS, STYLE_HEIGHT, STYLE_HEIGHT_UNITS, STYLE_ROW_HEIGHTS, STYLE_WIDTH, STYLE_WIDTH_UNITS, UNKNOWN_SIZE, WIDTH_CHANGED_PROPERTY, WIDTH_UNITS_CHANGED_PROPERTY
 
Fields inherited from interface nextapp.echo.Component
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, SELECTABLE_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Fields inherited from interface nextapp.echoservlet.ComponentPeer
IGNORE_PROPERTY_CHANGE
 
Constructor Summary
Screen()
           
 
Method Summary
abstract  java.lang.String getHistoryTitle()
           
 boolean isValid()
           Check if this component contains valid user input.
 void loadHistoryState(java.lang.Object[] savedState)
           
 void markInvalid()
           Marks the component as invalid.
 java.lang.Object[] saveHistoryState()
           
 void validate()
          Don't override in screen !
 
Methods inherited from class net.sf.jzeno.echo.components.DynaGrid
add, add, add, add, addCentered, addCentered, addLeft, addLeft, addRight, addRight, addValidator, applyStyle, getBean, getBeanClass, getDecorator, getNullObject, getProperty, getValidationErrors, getValidators, getValue, isAllowLineWrap, isBound, isMarkedInvalid, isReadOnly, isRequired, markValid, preRender, removeValidator, render, setAllowLineWrap, setBean, setBeanClass, setDecorator, setNullObject, setProperty, setReadOnly, setRequired, setValue, traceValue
 
Methods inherited from class nextapp.echo.Grid
add, add, add, addAncillaryService, addHierarchyListener, addPropertyChangeListener, deleteColumn, deleteRow, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, generateId, get, get, getBackground, getBorderColor, getBorderSize, getCalculatedBackground, getCalculatedFont, getCalculatedForeground, getCellLayoutOrientation, getCellMargin, getCellPosition, getClientId, getColumns, getColumnWidth, getComponent, getComponent, getComponentCount, getComponents, getCssClass, getEchoInstance, getFocusedElementId, getFont, getForeground, getHeight, getHeightUnits, getId, getIdentifier, getInstancePeer, getListenerList, getLocale, getParent, getParentComponentPeer, getPeer, getRowHeight, getRows, getSize, getUseInternalBorders, getWidth, getWidthUnits, indexOf, init, insertColumn, insertRow, invalidate, isAncestorOf, isEnabled, isFocused, isInitialized, isRecursivelyVisible, isRegistered, isSelectableForScriptRecorder, isShowing, isVisible, iterator, processHierarchyEvent, propertyChange, redraw, registerAncillaryServices, registered, remove, remove, remove, remove, removeAll, removeAncillaryService, removeHierarchyListener, removePropertyChangeListener, setBackground, setBorderColor, setBorderSize, setCellLayoutOrientation, setCellMargin, setClientId, setColumns, setColumnWidth, setComponent, setCssClass, setEnabled, setFocused, setFont, setForeground, setHeight, setHeightUnits, setId, setIdentifier, setInitialized, setInstancePeer, setLocale, setParent, setRegistered, setRowHeight, setRows, setSelectableForScriptRecorder, setUseInternalBorders, setVisible, setWidth, setWidthUnits, superAdd, superApplyStyle, superRemove, unregisterAncillaryServices, unregistered, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

his

protected transient HeapInspectorSupport his
Constructor Detail

Screen

public Screen()
Method Detail

validate

public final void validate()
Don't override in screen ! Weird effect - looses you hours !

Specified by:
validate in interface Component
Overrides:
validate in class Grid

saveHistoryState

public java.lang.Object[] saveHistoryState()

loadHistoryState

public void loadHistoryState(java.lang.Object[] savedState)

getHistoryTitle

public abstract java.lang.String getHistoryTitle()

isValid

public final boolean isValid()
Description copied from interface: PropertyComponent

Check if this component contains valid user input. In itself this operation will not mark the component in error. In order to apply error marking on invalid components you should use EchoSupport.doValidationRecursively(Component).

Specified by:
isValid in interface PropertyComponent
Overrides:
isValid in class DynaGrid

markInvalid

public final void markInvalid()
Description copied from interface: PropertyComponent

Marks the component as invalid. Typically puts a colored border around it to indicate the error.

Specified by:
markInvalid in interface PropertyComponent
Overrides:
markInvalid in class DynaGrid