ilog.cpl.table
Class IlpDefaultTableHeaderMenuFactory

java.lang.Object
  extended by ilog.cpl.interactor.IlpAbstractPopupMenuFactory
      extended by ilog.cpl.table.IlpDefaultTableHeaderMenuFactory
All Implemented Interfaces:
IlpPopupMenuFactory

public class IlpDefaultTableHeaderMenuFactory
extends IlpAbstractPopupMenuFactory

This factory provides a default pop-up menu for the header of table views. This menu allows the following actions:

Since:
JTGO 3.0

Constructor Summary
IlpDefaultTableHeaderMenuFactory()
           
 
Method Summary
 JPopupMenu createPopupMenu(IlpObjectSelectionModel ilpSelectionModel)
          Creates the table header default pop-up menu.
 JPopupMenu createPopupMenu(IlpTableHeaderInteractionContext context, IlpAttribute attribute, IlpObjectSelectionModel ilpSelectionModel)
          Creates the table header default pop-up menu.
 boolean isSortAttributes()
          Returns the way attribute names are sorted in the "Show Attributes" menu.
 void setSortAttributes(boolean value)
          Sets the way attribute names are sorted in the "Show Attributes" menu.
 
Methods inherited from class ilog.cpl.interactor.IlpAbstractPopupMenuFactory
createPopupMenu, createPopupMenu, getInteractionContext, getView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlpDefaultTableHeaderMenuFactory

public IlpDefaultTableHeaderMenuFactory()
Method Detail

isSortAttributes

public boolean isSortAttributes()
Returns the way attribute names are sorted in the "Show Attributes" menu.

Returns:
true when attribute names are sorted alphabetically. false when attribute names are arranged according to the table column order.

setSortAttributes

public void setSortAttributes(boolean value)
Sets the way attribute names are sorted in the "Show Attributes" menu. By default the attributes are sorted by name.

Parameters:
value - The new value to be set. When true attribute names are sorted alphabetically; when false attribute names are arranged according to the table column order.

createPopupMenu

public JPopupMenu createPopupMenu(IlpObjectSelectionModel ilpSelectionModel)
Creates the table header default pop-up menu. This method delegates the menu creation to the method createPopupMenu(IlpTableHeaderInteractionContext, IlpAttribute, IlpObjectSelectionModel).

Overrides:
createPopupMenu in class IlpAbstractPopupMenuFactory
Parameters:
ilpSelectionModel - The selection model used by the view this menu is made for. This selection model allows you to know which business objects are selected.

createPopupMenu

public JPopupMenu createPopupMenu(IlpTableHeaderInteractionContext context,
                                  IlpAttribute attribute,
                                  IlpObjectSelectionModel ilpSelectionModel)
Creates the table header default pop-up menu.

Parameters:
context - The table header interaction context describing the interaction that led to this method.
attribute - The attribute of the column concerned.
ilpSelectionModel - The selection model used by the view this menu is made for. This selection model allows you to know which business objects are selected.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.