Extension SDK 10.1.2

oracle.ide.controls
Class CopyableJTableAdapter

java.lang.Object
  extended byoracle.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


Extension SDK

 

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