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

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

public class TabsetStateModelImp
extends java.lang.Object
implements TabsetStateModel, java.io.Serializable

Implementation of the TabsetStateModel interface

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

Field Summary
private  java.lang.String first
          The first visible Tabpage
private  java.lang.String selected
          The selected Tabpage
private static long serialVersionUID
          Serial Version UID
 
Fields inherited from interface com.cc.framework.ui.model.TabsetStateModel
PROP_FIRST, PROP_SELECTED
 
Fields inherited from interface com.cc.framework.ui.model.StateModel
PROP_CONTROL
 
Constructor Summary
TabsetStateModelImp()
           
 
Method Summary
 java.lang.String getFirstVisibleTab()
          Returns the first visible TabPage of the tabSet
 java.lang.String getSelectedTab()
          Returns the current selected TabPage of the tabSet
 boolean isSelected(TabDesignModel tab)
          Returns true if the TabPage is selected
 void reset()
          Resets the actual state of a control to the initial state
 void setFirstVisibleTab(java.lang.String first)
          Selects the first visible TabPage
 void setSelectedTab(java.lang.String selected)
          Selects the specified TabPage
 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 Tabpage


first

private java.lang.String first
The first visible Tabpage

Constructor Detail

TabsetStateModelImp

public TabsetStateModelImp()
Method Detail

getFirstVisibleTab

public java.lang.String getFirstVisibleTab()
Description copied from interface: TabsetStateModel
Returns the first visible TabPage of the tabSet

Specified by:
getFirstVisibleTab in interface TabsetStateModel
Returns:
String or null
See Also:
TabsetStateModel.getFirstVisibleTab()

setFirstVisibleTab

public void setFirstVisibleTab(java.lang.String first)
Description copied from interface: TabsetStateModel
Selects the first visible TabPage

Specified by:
setFirstVisibleTab in interface TabsetStateModel
Parameters:
first - The first visible TabPage
See Also:
TabsetStateModel.setFirstVisibleTab(java.lang.String)

getSelectedTab

public java.lang.String getSelectedTab()
Description copied from interface: TabsetStateModel
Returns the current selected TabPage of the tabSet

Specified by:
getSelectedTab in interface TabsetStateModel
Returns:
String
See Also:
TabsetStateModel.getSelectedTab()

setSelectedTab

public void setSelectedTab(java.lang.String selected)
Description copied from interface: TabsetStateModel
Selects the specified TabPage

Specified by:
setSelectedTab in interface TabsetStateModel
Parameters:
selected - TabPage to be selected
See Also:
TabsetStateModel.setSelectedTab(java.lang.String)

isSelected

public boolean isSelected(TabDesignModel tab)
Description copied from interface: TabsetStateModel
Returns true if the TabPage is selected

Specified by:
isSelected in interface TabsetStateModel
Parameters:
tab - TabDesignModel
Returns:
boolean
See Also:
TabsetStateModel.isSelected(com.cc.framework.ui.model.TabDesignModel)

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.