org.springframework.richclient.command.support
Class ButtonStackGroupContainerPopulator

java.lang.Object
  extended by org.springframework.richclient.command.support.SimpleGroupContainerPopulator
      extended by org.springframework.richclient.command.support.ButtonStackGroupContainerPopulator
All Implemented Interfaces:
GroupContainerPopulator

public class ButtonStackGroupContainerPopulator
extends SimpleGroupContainerPopulator

Creates a buttonstack: a panel with buttons that are vertically positioned.

Author:
jh
See Also:
ButtonBarGroupContainerPopulator, ButtonStackBuilder

Constructor Summary
ButtonStackGroupContainerPopulator()
          Constructor.
 
Method Summary
 void add(Component c)
          Adds the given component to the underlying container.
 void addSeparator()
          Adds a separator to the underlying container.
 JPanel getButtonStack()
           
 void onPopulated()
          Default implementation, no action is performed.
 void setColumnSpec(com.jgoodies.forms.layout.ColumnSpec columnSpec)
          Set a custom columnSpec for the buttonstack.
 void setMinimumButtonSize(com.jgoodies.forms.layout.Size minimumSize)
          Define the minimum buttonsize of the buttonStack.
 void setRowSpec(com.jgoodies.forms.layout.RowSpec rowSpec)
          This allows to completely customize the rowspec.
 
Methods inherited from class org.springframework.richclient.command.support.SimpleGroupContainerPopulator
getContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ButtonStackGroupContainerPopulator

public ButtonStackGroupContainerPopulator()
Constructor.

Method Detail

setMinimumButtonSize

public void setMinimumButtonSize(com.jgoodies.forms.layout.Size minimumSize)
Define the minimum buttonsize of the buttonStack. This will actually replace the rowSpec with a new one.

Parameters:
minimumSize -
See Also:
setRowSpec(RowSpec)

setRowSpec

public void setRowSpec(com.jgoodies.forms.layout.RowSpec rowSpec)
This allows to completely customize the rowspec.

Parameters:
rowSpec -

setColumnSpec

public void setColumnSpec(com.jgoodies.forms.layout.ColumnSpec columnSpec)
Set a custom columnSpec for the buttonstack.

Parameters:
columnSpec -

getButtonStack

public JPanel getButtonStack()
Returns:
the created ButtonStack panel

add

public void add(Component c)
Description copied from class: SimpleGroupContainerPopulator
Adds the given component to the underlying container.

Specified by:
add in interface GroupContainerPopulator
Overrides:
add in class SimpleGroupContainerPopulator
Parameters:
c - The component to be added. Must not be null.
See Also:
SimpleGroupContainerPopulator.add(Component)

addSeparator

public void addSeparator()
Description copied from class: SimpleGroupContainerPopulator
Adds a separator to the underlying container.

Specified by:
addSeparator in interface GroupContainerPopulator
Overrides:
addSeparator in class SimpleGroupContainerPopulator
See Also:
SimpleGroupContainerPopulator.addSeparator()

onPopulated

public void onPopulated()
Description copied from class: SimpleGroupContainerPopulator
Default implementation, no action is performed.

Specified by:
onPopulated in interface GroupContainerPopulator
Overrides:
onPopulated in class SimpleGroupContainerPopulator
See Also:
SimpleGroupContainerPopulator.onPopulated()


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.