org.mmbase.module.gui.html
Class FieldSelector

java.lang.Object
  extended by org.mmbase.module.gui.html.FieldSelector
All Implemented Interfaces:
CommandHandlerInterface

public class FieldSelector
extends Object
implements CommandHandlerInterface

The FieldSelector class offers the possibility to edit fields of a selected object.

Version:
$Id: FieldSelector.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Daniel Ockeloen, Hans Speijer
Application:
SCAN

Field Summary
(package private)  StateManager stateMngr
           
 
Constructor Summary
FieldSelector(StateManager stateMngr)
          Constructor to setup reference to the StateManager.
 
Method Summary
(package private)  Vector getDataTypes(EditState ed, StringTagger args)
           
(package private)  Vector getEditFields(EditState ed, StringTagger args)
          Builds a list of editable fields for the field editor.
 List<String> getList(PageInfo sp, StringTagger args, StringTokenizer commands)
          General List pages coming from MMEdit.
(package private)  Vector getPosRelations(EditState ed, StringTagger args)
           
(package private)  Vector getRelDefs(EditState ed, StringTagger args)
           
(package private)  Vector getRelTypes(EditState ed, StringTagger args)
           
(package private)  Vector getTypes(EditState ed, StringTagger args)
           
 boolean process(PageInfo sp, StringTokenizer command, Hashtable cmds, Hashtable vars)
          The hook that passes all form related pages to the correct handler
 String replace(PageInfo sp, StringTokenizer cmds)
          Replace/Trigger commands
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stateMngr

StateManager stateMngr
Constructor Detail

FieldSelector

public FieldSelector(StateManager stateMngr)
Constructor to setup reference to the StateManager.

Method Detail

getList

public List<String> getList(PageInfo sp,
                            StringTagger args,
                            StringTokenizer commands)
                     throws ParseException
General List pages coming from MMEdit.

Specified by:
getList in interface CommandHandlerInterface
Throws:
ParseException

getRelTypes

Vector getRelTypes(EditState ed,
                   StringTagger args)

getDataTypes

Vector getDataTypes(EditState ed,
                    StringTagger args)

getTypes

Vector getTypes(EditState ed,
                StringTagger args)

getRelDefs

Vector getRelDefs(EditState ed,
                  StringTagger args)

getPosRelations

Vector getPosRelations(EditState ed,
                       StringTagger args)

getEditFields

Vector getEditFields(EditState ed,
                     StringTagger args)
Builds a list of editable fields for the field editor. Item1 = Name of the field (GUIName) Item2 = Type of the field (GUIType) Item3 = Database name of the field (DBName) Item4 = Current Search Value of the field


replace

public String replace(PageInfo sp,
                      StringTokenizer cmds)
Replace/Trigger commands

Specified by:
replace in interface CommandHandlerInterface

process

public boolean process(PageInfo sp,
                       StringTokenizer command,
                       Hashtable cmds,
                       Hashtable vars)
The hook that passes all form related pages to the correct handler

Specified by:
process in interface CommandHandlerInterface


MMBase 2.0-SNAPSHOT - null