org.codehaus.mojo.pomtools.console.screens.editors
Class AbstractEditListItemScreen

java.lang.Object
  extended by org.codehaus.mojo.pomtools.console.screens.AbstractModelScreen
      extended by org.codehaus.mojo.pomtools.console.screens.editors.AbstractEditListItemScreen
All Implemented Interfaces:
ConsoleScreen
Direct Known Subclasses:
EditObjectScreen, TransitiveEndPointDetailScreen, TransitiveStartPointDetailScreen

public abstract class AbstractEditListItemScreen
extends AbstractModelScreen

Version:
$Id: AbstractEditListItemScreen.java 2166 2006-07-18 21:32:16Z carlos $
Author:
David Hawkins

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.mojo.pomtools.console.screens.AbstractModelScreen
AbstractModelScreen.OptionsPane
 
Field Summary
protected static java.lang.String KEY_NEXT_LIST_ITEM
           
protected static java.lang.String KEY_PREVIOUS_LIST_ITEM
           
 
Fields inherited from class org.codehaus.mojo.pomtools.console.screens.AbstractModelScreen
KEY_DELETE_ITEM, KEY_NEW_ITEM, MODIFIED_LABEL, NEWLINE, NULL_VALUE, PRESS_ENTER_TO_CONTINUE
 
Constructor Summary
AbstractEditListItemScreen(java.lang.String name, java.util.List containingList, int index)
           
AbstractEditListItemScreen(java.lang.String name, java.lang.Object editorObject)
           
 
Method Summary
protected  java.util.List getContainingList()
           
 ConsoleEventDispatcher getDefaultEventDispatcher()
           
protected  java.lang.Object getEditorObject()
           
protected  AbstractModelScreen.OptionsPane getOptionsPane()
           
protected  AbstractModelScreen.OptionsPane getOptionsPane(boolean includeDelete)
           
protected  boolean hasContainingList()
           
protected  boolean hasNext()
           
protected  boolean hasPrevious()
           
protected  void setContainingList(java.util.List list, int index)
           
protected  void setCurrentIndex(int index)
           
 
Methods inherited from class org.codehaus.mojo.pomtools.console.screens.AbstractModelScreen
createDisplay, createDisplay, decorateModifiedLabel, doRevert, doSave, getDefaultEventManager, getFieldNameHeader, getHeader, getHeader, getHeader, getHelpText, getModelContext, getModifiedLabel, getName, getTerminal, getTerminalWidth, isModified, isNumberInRange, numberPrompt, setHelpText, setTerminalWidth, strPrompt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.mojo.pomtools.console.toolkit.ConsoleScreen
getDisplay, getEventDispatcher
 

Field Detail

KEY_PREVIOUS_LIST_ITEM

protected static final java.lang.String KEY_PREVIOUS_LIST_ITEM
See Also:
Constant Field Values

KEY_NEXT_LIST_ITEM

protected static final java.lang.String KEY_NEXT_LIST_ITEM
See Also:
Constant Field Values
Constructor Detail

AbstractEditListItemScreen

public AbstractEditListItemScreen(java.lang.String name,
                                  java.lang.Object editorObject)

AbstractEditListItemScreen

public AbstractEditListItemScreen(java.lang.String name,
                                  java.util.List containingList,
                                  int index)
Method Detail

setCurrentIndex

protected void setCurrentIndex(int index)

setContainingList

protected void setContainingList(java.util.List list,
                                 int index)

getEditorObject

protected java.lang.Object getEditorObject()

getContainingList

protected java.util.List getContainingList()

hasContainingList

protected boolean hasContainingList()

hasNext

protected boolean hasNext()

hasPrevious

protected boolean hasPrevious()

getDefaultEventDispatcher

public ConsoleEventDispatcher getDefaultEventDispatcher()
                                                 throws ConsoleExecutionException
Overrides:
getDefaultEventDispatcher in class AbstractModelScreen
Throws:
ConsoleExecutionException

getOptionsPane

protected AbstractModelScreen.OptionsPane getOptionsPane()

getOptionsPane

protected AbstractModelScreen.OptionsPane getOptionsPane(boolean includeDelete)


Copyright © 2009 The Codehaus. All Rights Reserved.