Adempiere 3.5.2a

org.compiere.swing
Class CColumnControlButton.DefaultColumnControlPopup

java.lang.Object
  extended by org.compiere.swing.CColumnControlButton.DefaultColumnControlPopup
All Implemented Interfaces:
org.jdesktop.swingx.table.ColumnControlPopup
Enclosing class:
CColumnControlButton

public class CColumnControlButton.DefaultColumnControlPopup
extends Object
implements org.jdesktop.swingx.table.ColumnControlPopup

A default implementation of ColumnControlPopup. It uses a JPopupMenu with MenuItems corresponding to the Actions as provided by the ColumnControlButton.


Constructor Summary
CColumnControlButton.DefaultColumnControlPopup()
           
 
Method Summary
 void addAdditionalActionItems(List<? extends Action> actions)
           
protected  void addItem(AbstractButton item)
           
protected  void addItems(List<? extends Action> actions)
          Here: creates and adds a menuItem to the popup for every Action in the list.
protected  void addSeparator()
          adds a separator to the popup.
 void addVisibilityActionItems(List<? extends org.jdesktop.swingx.action.AbstractActionExt> actions)
           
 void applyComponentOrientation(ComponentOrientation o)
           
protected  JScrollPane createScroller()
          Creates the scroll pane which houses the scrollable list.
protected  JPopupMenu getPopupMenu()
           
 void removeAll()
           
 void toggleVisibility(JComponent owner)
           
 void updateUI()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CColumnControlButton.DefaultColumnControlPopup

public CColumnControlButton.DefaultColumnControlPopup()
Method Detail

updateUI

public void updateUI()
Specified by:
updateUI in interface org.jdesktop.swingx.table.ColumnControlPopup

toggleVisibility

public void toggleVisibility(JComponent owner)
Specified by:
toggleVisibility in interface org.jdesktop.swingx.table.ColumnControlPopup

applyComponentOrientation

public void applyComponentOrientation(ComponentOrientation o)
Specified by:
applyComponentOrientation in interface org.jdesktop.swingx.table.ColumnControlPopup

removeAll

public void removeAll()
Specified by:
removeAll in interface org.jdesktop.swingx.table.ColumnControlPopup

addVisibilityActionItems

public void addVisibilityActionItems(List<? extends org.jdesktop.swingx.action.AbstractActionExt> actions)
Specified by:
addVisibilityActionItems in interface org.jdesktop.swingx.table.ColumnControlPopup

addAdditionalActionItems

public void addAdditionalActionItems(List<? extends Action> actions)
Specified by:
addAdditionalActionItems in interface org.jdesktop.swingx.table.ColumnControlPopup

addItems

protected void addItems(List<? extends Action> actions)
Here: creates and adds a menuItem to the popup for every Action in the list. Does nothing if if the list is empty. PRE: actions != null.

Parameters:
actions - a list containing the actions to add to the popup. Must not be null.

addSeparator

protected void addSeparator()
adds a separator to the popup.


addItem

protected void addItem(AbstractButton item)
Parameters:
item - the menuItem to add to the popup.

getPopupMenu

protected JPopupMenu getPopupMenu()
Returns:
the popup to add menuitems. Guaranteed to be != null.

createScroller

protected JScrollPane createScroller()
Creates the scroll pane which houses the scrollable list.


Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.