Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


oracle.javatools.ui.table
Class ReorderableTable

java.lang.Object
  extended by oracle.javatools.ui.table.ReorderableTable

All Implemented Interfaces:
oracle.bali.ewt.shuttle.Reorderable, oracle.bali.ewt.shuttle.Reorderable2

public class ReorderableTable
extends java.lang.Object
implements Reorderable

ReorderableTable abstracts the reordering communication between a reorderable table and the controller that reorders it. This extends from Reorderable2 and adds facility to attach selection change listener for controller to listen for any changes in the component's selection. By default ReorderableTable supports only DefaultTableModel or ReorderableTableModel. If you are not using the above models, please implement ReorderableTableModel for your table model.


Constructor Summary
ReorderableTable(javax.swing.JTable table)
          Create a Reorderable support for the specified table.

 

Method Summary
 void addSelectionListener(javax.swing.event.ListSelectionListener listener)
          Adds the selection listener to the table selection model.
protected  void fireSelectionChanged()
          Fires Selection Value ValueChanged
 javax.swing.JTable getTable()
          Returns the JTable component for which reorderable support is provided.
 boolean isSelectionBottomMobile()
          Returns true if the current selection can be moved to bottom
 boolean isSelectionDownwardlyMobile()
          Returns true if the current selection can be moved downward.
 boolean isSelectionTopMobile()
          Returns true if the current selection can be moved to top
 boolean isSelectionUpwardlyMobile()
          Returns true if the current selection can be moved upward.
 void moveSelectionBottom()
          Request to move the current selection to Bottom
 void moveSelectionDown()
          Request to move the current selection down.
 void moveSelectionTop()
          Request to move the current selection to top
 void moveSelectionUp()
          Request to move the current selection up.
 void removeSelectionListener(javax.swing.event.ListSelectionListener listener)
          Removed the selection listener attached to the table selection model.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ReorderableTable

public ReorderableTable(javax.swing.JTable table)
Create a Reorderable support for the specified table.

Method Detail

getTable

public javax.swing.JTable getTable()
Returns the JTable component for which reorderable support is provided.

isSelectionTopMobile

public boolean isSelectionTopMobile()
Returns true if the current selection can be moved to top
Specified by:
isSelectionTopMobile in interface oracle.bali.ewt.shuttle.Reorderable2

isSelectionUpwardlyMobile

public boolean isSelectionUpwardlyMobile()
Returns true if the current selection can be moved upward.
Specified by:
isSelectionUpwardlyMobile in interface oracle.bali.ewt.shuttle.Reorderable

isSelectionDownwardlyMobile

public boolean isSelectionDownwardlyMobile()
Returns true if the current selection can be moved downward.
Specified by:
isSelectionDownwardlyMobile in interface oracle.bali.ewt.shuttle.Reorderable

isSelectionBottomMobile

public boolean isSelectionBottomMobile()
Returns true if the current selection can be moved to bottom
Specified by:
isSelectionBottomMobile in interface oracle.bali.ewt.shuttle.Reorderable2

moveSelectionTop

public void moveSelectionTop()
Request to move the current selection to top
Specified by:
moveSelectionTop in interface oracle.bali.ewt.shuttle.Reorderable2

moveSelectionUp

public void moveSelectionUp()
Request to move the current selection up.
Specified by:
moveSelectionUp in interface oracle.bali.ewt.shuttle.Reorderable

moveSelectionDown

public void moveSelectionDown()
Request to move the current selection down.
Specified by:
moveSelectionDown in interface oracle.bali.ewt.shuttle.Reorderable

moveSelectionBottom

public void moveSelectionBottom()
Request to move the current selection to Bottom
Specified by:
moveSelectionBottom in interface oracle.bali.ewt.shuttle.Reorderable2

addSelectionListener

public void addSelectionListener(javax.swing.event.ListSelectionListener listener)
Adds the selection listener to the table selection model.

removeSelectionListener

public void removeSelectionListener(javax.swing.event.ListSelectionListener listener)
Removed the selection listener attached to the table selection model.

fireSelectionChanged

protected void fireSelectionChanged()
Fires Selection Value ValueChanged

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


Copyright © 1997, 2013, Oracle. All rights reserved.