com.cc.framework.ui.control
Class ControlButton

java.lang.Object
  extended bycom.cc.framework.ui.control.ControlButton
All Implemented Interfaces:
java.io.Serializable

public class ControlButton
extends java.lang.Object
implements java.io.Serializable

Constants for buttons used by controls

Since:
1.0
Version:
$Revision: 1.20 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
static ControlButton ADD
          ADD Button
static ControlButton ADDALL
          ADDALL Button
static ControlButton ADDAPPOINTMENT
          AddAppointment Button
static ControlButton CLOSE
          Close Button
static ControlButton CREATE
          CREATE Button
static ControlButton EXPORTLIST
          EXPORTLIST Button
static ControlButton FIRSTPAGE
          FIRSTPAGE Button
static ControlButton HELP
          HELP Button
static ControlButton LASTPAGE
          LASTPAGE Button
static ControlButton MAXIMIZE
          Maximize Button
static ControlButton MINIMIZE
          Minimize Button
static ControlButton MOVE
          MOVE Button
static ControlButton MOVE_DOWN
          MOVE_DOWN Button
static ControlButton MOVE_UP
          MOVE_UP Button
private  java.lang.String name
          Button Name
static ControlButton NEXTPAGE
          NEXTPAGE Button
static ControlButton PAGE
          PAGE Button
static ControlButton PREVPAGE
          PREVPAGE Button
static ControlButton PRINTLIST
          PRINTLIST Button
static ControlButton REFRESH
          REFRESH Button
private static java.util.Hashtable registry
          List with all actions defined above
static ControlButton REMOVE
          REMOVE Button
static ControlButton REMOVEALL
          REMOVEALL Button
static ControlButton RESTORE
          Restore Button
static ControlButton ROLL
          Roll Button
private static long serialVersionUID
          Serial Version UID
static ControlButton VIEW
          Close Button
 
Constructor Summary
protected ControlButton(java.lang.String name)
          Constructor of ControlButton
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this type to the specified object.
 java.lang.String getName()
           
static boolean isRegistered(java.lang.String button)
          Checks if a certain control button is registered in the action registry
static ControlButton parse(java.lang.String code)
          Returns a ControlButton for the argument
static ControlButton query(java.lang.String code)
          Returns a ControlButton for the argument
static void registerControlButton(ControlButton button)
          Registers an control button in the global registry
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

PAGE

public static final ControlButton PAGE
PAGE Button


CREATE

public static final ControlButton CREATE
CREATE Button


REFRESH

public static final ControlButton REFRESH
REFRESH Button


FIRSTPAGE

public static final ControlButton FIRSTPAGE
FIRSTPAGE Button


PREVPAGE

public static final ControlButton PREVPAGE
PREVPAGE Button


NEXTPAGE

public static final ControlButton NEXTPAGE
NEXTPAGE Button


LASTPAGE

public static final ControlButton LASTPAGE
LASTPAGE Button


ADD

public static final ControlButton ADD
ADD Button


ADDALL

public static final ControlButton ADDALL
ADDALL Button


REMOVE

public static final ControlButton REMOVE
REMOVE Button


REMOVEALL

public static final ControlButton REMOVEALL
REMOVEALL Button


HELP

public static final ControlButton HELP
HELP Button


MINIMIZE

public static final ControlButton MINIMIZE
Minimize Button


MAXIMIZE

public static final ControlButton MAXIMIZE
Maximize Button


RESTORE

public static final ControlButton RESTORE
Restore Button


CLOSE

public static final ControlButton CLOSE
Close Button


VIEW

public static final ControlButton VIEW
Close Button


ROLL

public static final ControlButton ROLL
Roll Button


ADDAPPOINTMENT

public static final ControlButton ADDAPPOINTMENT
AddAppointment Button


EXPORTLIST

public static final ControlButton EXPORTLIST
EXPORTLIST Button


PRINTLIST

public static final ControlButton PRINTLIST
PRINTLIST Button


MOVE

public static final ControlButton MOVE
MOVE Button


MOVE_UP

public static final ControlButton MOVE_UP
MOVE_UP Button


MOVE_DOWN

public static final ControlButton MOVE_DOWN
MOVE_DOWN Button


name

private java.lang.String name
Button Name


registry

private static java.util.Hashtable registry
List with all actions defined above

Constructor Detail

ControlButton

protected ControlButton(java.lang.String name)
Constructor of ControlButton

Parameters:
name - Button name
Method Detail

registerControlButton

public static void registerControlButton(ControlButton button)
Registers an control button in the global registry

Parameters:
button - The control button

isRegistered

public static boolean isRegistered(java.lang.String button)
Checks if a certain control button is registered in the action registry

Parameters:
button - The button name to check
Returns:
returns true if the control button is already registered in the registry

query

public static ControlButton query(java.lang.String code)
Returns a ControlButton for the argument

Parameters:
code - String to parse
Returns:
ControlActionDef or null

parse

public static ControlButton parse(java.lang.String code)
Returns a ControlButton for the argument

Parameters:
code - String to parse
Returns:
ControlButton
Throws:
InvalidEnumType - Is thrown when the name is not valid

equals

public boolean equals(java.lang.Object obj)
Compares this type to the specified object.

Parameters:
obj - The object to compare this ControlButton object against.
Returns:
true if the internal types are equal; false otherwise.

getName

public java.lang.String getName()
Returns:
The control button name

toString

public java.lang.String toString()
See Also:
Object.toString()


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.