com.japisoft.multipanes
Class DefaultTitledPaneModel

java.lang.Object
  |
  +--com.japisoft.multipanes.DefaultTitledPaneModel
All Implemented Interfaces:
TitledPaneModel

public class DefaultTitledPaneModel
extends java.lang.Object
implements TitledPaneModel

Here a default model storing all the TitledPane

See Also:
TitledPane

Constructor Summary
DefaultTitledPaneModel(MultiPanes panes)
           
 
Method Summary
 void addTitledPane(TitledPane tp)
          Add a new titledPane component
 TitledPane getTitledPaneAt(int index)
           
 TitledPane getTitledPaneByName(java.lang.String name)
           
 int getTitledPaneCount()
           
 void insertTitledPane(int location, TitledPane tp)
          Insert a titledPane at a specific location
 void removeTitledPane(TitledPane tp)
          Remove a previously inserted component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTitledPaneModel

public DefaultTitledPaneModel(MultiPanes panes)
Method Detail

addTitledPane

public void addTitledPane(TitledPane tp)
Description copied from interface: TitledPaneModel
Add a new titledPane component

Specified by:
addTitledPane in interface TitledPaneModel

insertTitledPane

public void insertTitledPane(int location,
                             TitledPane tp)
Description copied from interface: TitledPaneModel
Insert a titledPane at a specific location

Specified by:
insertTitledPane in interface TitledPaneModel

removeTitledPane

public void removeTitledPane(TitledPane tp)
Description copied from interface: TitledPaneModel
Remove a previously inserted component

Specified by:
removeTitledPane in interface TitledPaneModel

getTitledPaneByName

public TitledPane getTitledPaneByName(java.lang.String name)
Specified by:
getTitledPaneByName in interface TitledPaneModel
Returns:
a titledPane matching the parameter name

getTitledPaneAt

public TitledPane getTitledPaneAt(int index)
Specified by:
getTitledPaneAt in interface TitledPaneModel
Returns:
a titledPane for a location starting at 0

getTitledPaneCount

public int getTitledPaneCount()
Specified by:
getTitledPaneCount in interface TitledPaneModel
Returns:
the number of titledPane