net.sf.jzeno.echo.screen.settings
Class MenuEditorScreen

java.lang.Object
  extended by nextapp.echo.Grid
      extended by net.sf.jzeno.echo.components.DynaGrid
          extended by net.sf.jzeno.echo.components.Screen
              extended by net.sf.jzeno.echo.screen.settings.MenuEditorScreen
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, BindingTarget, PropertyComponent, EventSink, Precreation, Component, ComponentPeer, FastComponent

public class MenuEditorScreen
extends Screen
implements Precreation

The setup screen is shown the very first time a user starts jZeno and guides him through the basic configuration of jZeno. It is also shown if settings.dat can not be found in the WEB-INF folder.

See Also:
Serialized Form

Nested Class Summary
 class MenuEditorScreen.MenuSpecTreeModel
           
 class MenuEditorScreen.MenuSpecViewer
           
 
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
 
Fields inherited from class net.sf.jzeno.echo.components.Screen
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
MenuEditorScreen()
           
 
Method Summary
 void addItem()
           
 void apply()
           
 void applyContext()
           
 java.lang.String getHistoryTitle()
           
 MenuProperties getMenuProperties()
           
 java.util.List getMenuSpecs()
           
 MenuProperties.MenuSpec getSelectedNode()
           
 void preRender()
           Make changes to the visual representation of this component before Echo starts rendering the component.
 void save()
           
 void setMenuSpecs(java.util.List list)
           
 void setSelectedNode(MenuProperties.MenuSpec selectedNode)
           
 
Methods inherited from class net.sf.jzeno.echo.components.Screen
isValid, loadHistoryState, markInvalid, saveHistoryState, validate
 
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, 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
 

Constructor Detail

MenuEditorScreen

public MenuEditorScreen()
Method Detail

addItem

public void addItem()

getMenuSpecs

public java.util.List getMenuSpecs()

setMenuSpecs

public void setMenuSpecs(java.util.List list)

getMenuProperties

public MenuProperties getMenuProperties()

save

public void save()

apply

public void apply()

getHistoryTitle

public java.lang.String getHistoryTitle()
Specified by:
getHistoryTitle in class Screen

getSelectedNode

public MenuProperties.MenuSpec getSelectedNode()

setSelectedNode

public void setSelectedNode(MenuProperties.MenuSpec selectedNode)

preRender

public void preRender()
Description copied from interface: PropertyComponent

Make changes to the visual representation of this component before Echo starts rendering the component.

Do not modify any bound javabeans in this method, as the changes to these will not be reflected properly on the screen.

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

applyContext

public void applyContext()
Specified by:
applyContext in interface Precreation