jap
Class JAPConfTC

java.lang.Object
  extended by jap.AbstractJAPConfModule
      extended by jap.JAPConfTC
All Implemented Interfaces:
JAPHelpContext.IHelpContext, TermsAndCondtionsTableController, java.util.Observer

public class JAPConfTC
extends AbstractJAPConfModule
implements java.util.Observer, TermsAndCondtionsTableController


Nested Class Summary
 
Nested classes/interfaces inherited from class jap.AbstractJAPConfModule
AbstractJAPConfModule.FontSizeObserver
 
Field Summary
private  javax.swing.JScrollPane m_scrollingTerms
           
private  TermsAndConditionsOperatorTable m_tblOperators
           
private  javax.swing.JEditorPane m_termsPane
           
private static java.lang.String MSG_ERR_REJECT_IMPOSSIBLE
           
private static java.lang.String MSG_TAB_TITLE
           
 
Fields inherited from class jap.AbstractJAPConfModule
LOCK_OBSERVABLE, m_savePoint
 
Constructor Summary
protected JAPConfTC(IJAPConfSavePoint savePoint)
           
 
Method Summary
 java.lang.String getHelpContext()
           
 java.lang.String getTabTitle()
          This method must be implemented by the children of AbstractJAPConfModule and returns the title for this configuration tab.
 void handleAcceptAction(ServiceOperator operator, boolean accept)
           
 boolean handleOperatorAction(ServiceOperator operator, boolean accepted)
           
 void handleSelectLineAction(ServiceOperator operator)
           
protected  boolean initObservers()
          All observables that are observed by this object MUST be registered here.
protected  void onCancelPressed()
          This method can be overwritten by the children of AbstractJAPConfModule.
protected  boolean onOkPressed()
          This method can be overwritten by the children of AbstractJAPConfModule.
protected  void onRootPanelShown()
          This method can be overwritten by the children of AbstractJAPConfModule.
protected  void onUpdateValues()
          This method can be overwritten by the children of AbstractJAPConfModule.
 void recreateRootPanel()
          This method must be implemented by the children of AbstractJAPConfModule.
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class jap.AbstractJAPConfModule
cancelPressed, createSavePoint, createTabbedRootPanelContraints, fontSizeChanged, getHelpExtractionDisplayContext, getRootPanel, okPressed, onResetToDefaultsPressed, resetToDefaultsPressed, updateValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_TAB_TITLE

private static final java.lang.String MSG_TAB_TITLE

MSG_ERR_REJECT_IMPOSSIBLE

private static final java.lang.String MSG_ERR_REJECT_IMPOSSIBLE

m_tblOperators

private TermsAndConditionsOperatorTable m_tblOperators

m_termsPane

private javax.swing.JEditorPane m_termsPane

m_scrollingTerms

private javax.swing.JScrollPane m_scrollingTerms
Constructor Detail

JAPConfTC

protected JAPConfTC(IJAPConfSavePoint savePoint)
Method Detail

initObservers

protected boolean initObservers()
Description copied from class: AbstractJAPConfModule
All observables that are observed by this object MUST be registered here. Subsequent calls of this method should not lead to additional registrations.

Overrides:
initObservers in class AbstractJAPConfModule

getTabTitle

public java.lang.String getTabTitle()
Description copied from class: AbstractJAPConfModule
This method must be implemented by the children of AbstractJAPConfModule and returns the title for this configuration tab.

Specified by:
getTabTitle in class AbstractJAPConfModule
Returns:
The title for this configuration tab.

recreateRootPanel

public void recreateRootPanel()
Description copied from class: AbstractJAPConfModule
This method must be implemented by the children of AbstractJAPConfModule. It is called every time the root panel needs to be (re)created (e.g. the language has changed). This method is also called by the constructor of AbstractJAPConfModule after creating the root panel.

Specified by:
recreateRootPanel in class AbstractJAPConfModule

getHelpContext

public java.lang.String getHelpContext()
Specified by:
getHelpContext in interface JAPHelpContext.IHelpContext

onRootPanelShown

protected void onRootPanelShown()
Description copied from class: AbstractJAPConfModule
This method can be overwritten by the children of AbstractJAPConfModule. It is called every time the root panel comes to the foreground (is set to visible).

Overrides:
onRootPanelShown in class AbstractJAPConfModule

onOkPressed

protected boolean onOkPressed()
Description copied from class: AbstractJAPConfModule
This method can be overwritten by the children of AbstractJAPConfModule. It is called every time the user presses "OK" in the configuration dialog.

Overrides:
onOkPressed in class AbstractJAPConfModule

onCancelPressed

protected void onCancelPressed()
Description copied from class: AbstractJAPConfModule
This method can be overwritten by the children of AbstractJAPConfModule. It is called every time the user presses "Cancel" in the configuration dialog after the restoring of the savepoint data (if there is a savepoint for this module).

Overrides:
onCancelPressed in class AbstractJAPConfModule

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer

onUpdateValues

protected void onUpdateValues()
Description copied from class: AbstractJAPConfModule
This method can be overwritten by the children of AbstractJAPConfModule. It is called every time the values of the model have changed and must be reread by the module. SHOULD NOT BE CALLED DIRECTLY in subclasses!!

Overrides:
onUpdateValues in class AbstractJAPConfModule

handleOperatorAction

public boolean handleOperatorAction(ServiceOperator operator,
                                    boolean accepted)
Specified by:
handleOperatorAction in interface TermsAndCondtionsTableController

handleSelectLineAction

public void handleSelectLineAction(ServiceOperator operator)
Specified by:
handleSelectLineAction in interface TermsAndCondtionsTableController

handleAcceptAction

public void handleAcceptAction(ServiceOperator operator,
                               boolean accept)
Specified by:
handleAcceptAction in interface TermsAndCondtionsTableController