com.cc.framework.ui.model.imp
Class CrumbsStateModelImp

java.lang.Object
  extended bycom.cc.framework.ui.model.imp.CrumbsStateModelImp
All Implemented Interfaces:
CrumbsStateModel, java.io.Serializable, StateModel

public class CrumbsStateModelImp
extends java.lang.Object
implements CrumbsStateModel, java.io.Serializable

Implementation of the CrumbsStateModel interface

Version:
$Revision: 1.7 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  java.lang.String selected
          The selected Crumb
private static long serialVersionUID
          Serial Version UID
 
Fields inherited from interface com.cc.framework.ui.model.CrumbsStateModel
PROP_SELECTED
 
Fields inherited from interface com.cc.framework.ui.model.StateModel
PROP_CONTROL
 
Constructor Summary
CrumbsStateModelImp()
           
 
Method Summary
 java.lang.String getSelectedCrumb()
          Returns the current selected crumb
 boolean isSelected(CrumbModel crumb)
          Returns true if the Crumb is selected
 void reset()
          Resets the actual state of a control to the initial state
 void setSelectedCrumb(java.lang.String selected)
          Selects the specified crumb
 void synchronizeState(PropertyMap properties)
          This method applies the given state properties to the controls state model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

selected

private java.lang.String selected
The selected Crumb

Constructor Detail

CrumbsStateModelImp

public CrumbsStateModelImp()
Method Detail

getSelectedCrumb

public java.lang.String getSelectedCrumb()
Description copied from interface: CrumbsStateModel
Returns the current selected crumb

Specified by:
getSelectedCrumb in interface CrumbsStateModel
Returns:
String
See Also:
CrumbsStateModel.getSelectedCrumb()

setSelectedCrumb

public void setSelectedCrumb(java.lang.String selected)
Description copied from interface: CrumbsStateModel
Selects the specified crumb

Specified by:
setSelectedCrumb in interface CrumbsStateModel
Parameters:
selected - crumb to be selected
See Also:
CrumbsStateModel.setSelectedCrumb(java.lang.String)

isSelected

public boolean isSelected(CrumbModel crumb)
Description copied from interface: CrumbsStateModel
Returns true if the Crumb is selected

Specified by:
isSelected in interface CrumbsStateModel
Parameters:
crumb - CrumbModel
Returns:
boolean
See Also:
CrumbsStateModel.isSelected(com.cc.framework.ui.model.CrumbModel)

reset

public void reset()
Description copied from interface: StateModel
Resets the actual state of a control to the initial state

Specified by:
reset in interface StateModel
See Also:
StateModel.reset()

synchronizeState

public void synchronizeState(PropertyMap properties)
                      throws java.lang.Exception
Description copied from interface: StateModel
This method applies the given state properties to the controls state model

Specified by:
synchronizeState in interface StateModel
Parameters:
properties - State properties
Throws:
java.lang.Exception - is thrown when an error occurs during execution
See Also:
StateModel.synchronizeState(com.cc.framework.util.PropertyMap)


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