Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.ide.controls
Class CopyableJTableAdapter

java.lang.Object
  extended by oracle.ide.controls.CopyableJTableAdapter


public class CopyableJTableAdapter
extends java.lang.Object

CopyableJTableAdapter provides an utility services for copying table data to the clipboard.


Constructor Summary
CopyableJTableAdapter(javax.swing.JTable table)
          Create a new adapter.

 

Method Summary
 boolean canCopy()
          Whether the table data can be copied.
 boolean copyToClipboard()
          Copies the adapted table's data to the clipboard.
 java.lang.String getNullString()
          Retrieves the string being used to indicate a null value in the table.
static boolean isSelectionSizeOk(int num, int[] rows)
          Determines whether a selection is okay
 void setNullString(java.lang.String s)
          Sets the string used to indicate an null value in the table.

 

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

 

Constructor Detail

CopyableJTableAdapter

public CopyableJTableAdapter(javax.swing.JTable table)
Create a new adapter.
Parameters:
table - the table for which the new CopyableJTableAdapter is an adapter.

Method Detail

setNullString

public void setNullString(java.lang.String s)
Sets the string used to indicate an null value in the table.
Parameters:
s - the string

getNullString

public java.lang.String getNullString()
Retrieves the string being used to indicate a null value in the table.

canCopy

public boolean canCopy()
Whether the table data can be copied.

copyToClipboard

public boolean copyToClipboard()
Copies the adapted table's data to the clipboard.
Returns:
whether the copy succeeded.

isSelectionSizeOk

public static boolean isSelectionSizeOk(int num,
                                        int[] rows)
Determines whether a selection is okay

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


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