net.sf.filePiper.gui.borders
Class FileProcessorBorder

java.lang.Object
  extended by net.sf.sfac.gui.layout.MultiBorder
      extended by net.sf.filePiper.gui.borders.FileProcessorBorder
All Implemented Interfaces:
Border

public class FileProcessorBorder
extends net.sf.sfac.gui.layout.MultiBorder

Border allowing to choose the file processor.

Author:
Olivier Berlanger
See Also:
MultiBorderLayout, MultiBorderConstraints

Nested Class Summary
static interface FileProcessorBorder.Listener
           
 
Field Summary
 
Fields inherited from class net.sf.sfac.gui.layout.MultiBorder
enclosedCells, height, nestedBorders, paintedBorder, paintedBorderInsets, updatedInsets, width, x, y
 
Constructor Summary
FileProcessorBorder(ComboBoxModel allChoices)
          Creates an ExpandBorder using an EtchedBorder.
FileProcessorBorder(JComboBox choicesCombo)
          Creates an ExpandBorder using an EtchedBorder.
 
Method Summary
 void addBorderListsner(FileProcessorBorder.Listener lis)
           
 void addPerformed()
           
 boolean isAddButtonEnabled()
           
 boolean isRemoveButtonEnabled()
           
protected  void layoutExtraComponents(Container cont)
           
protected  void registerExtraComponents()
          Check that the expand button is well added at the end of the list of border components.
 void removeBorderListsner(FileProcessorBorder.Listener lis)
           
 void removePerformed()
           
 void setAddButtonEnabled(boolean enabled)
           
 void setRemoveButtonEnabled(boolean enabled)
           
protected  void updateInsets(Insets insetToUpdate)
           
 
Methods inherited from class net.sf.sfac.gui.layout.MultiBorder
adaptCellSizes, add, addExtraComponents, containsCell, dispose, getBorderInsets, getPaintedBorderInsets, getUpdatedInsets, isBorderEnabled, isBorderOpaque, isBorderVisible, isEmpty, layout, paint, paintBorder, registerExtraComponent, setBorderEnabled, setBorderVisible, setLayout, setNestedBorder, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileProcessorBorder

public FileProcessorBorder(ComboBoxModel allChoices)
Creates an ExpandBorder using an EtchedBorder.


FileProcessorBorder

public FileProcessorBorder(JComboBox choicesCombo)
Creates an ExpandBorder using an EtchedBorder.

Method Detail

removePerformed

public void removePerformed()

addPerformed

public void addPerformed()

setAddButtonEnabled

public void setAddButtonEnabled(boolean enabled)

isAddButtonEnabled

public boolean isAddButtonEnabled()

setRemoveButtonEnabled

public void setRemoveButtonEnabled(boolean enabled)

isRemoveButtonEnabled

public boolean isRemoveButtonEnabled()

registerExtraComponents

protected void registerExtraComponents()
Check that the expand button is well added at the end of the list of border components. If not, add It.

Overrides:
registerExtraComponents in class net.sf.sfac.gui.layout.MultiBorder

layoutExtraComponents

protected void layoutExtraComponents(Container cont)
Overrides:
layoutExtraComponents in class net.sf.sfac.gui.layout.MultiBorder

updateInsets

protected void updateInsets(Insets insetToUpdate)
Overrides:
updateInsets in class net.sf.sfac.gui.layout.MultiBorder

addBorderListsner

public void addBorderListsner(FileProcessorBorder.Listener lis)

removeBorderListsner

public void removeBorderListsner(FileProcessorBorder.Listener lis)


Copyright © 2011. All Rights Reserved.