Extension SDK

oracle.ide.model
Class DocumentInfo

java.lang.Object
  extended byoracle.ide.model.DocumentInfo

public class DocumentInfo
extends java.lang.Object

DocumentInfo class. Stores information about a given document type. Such information includes: the icon representing the document type, and the document type display label.


Constructor Summary
DocumentInfo(java.lang.String label, ArrayResourceBundle bundle, int key)
          Constructor, where resource fetch is postponed until needed.
DocumentInfo(java.lang.String label, javax.swing.Icon icon)
          Constructor.
 
Method Summary
 javax.swing.Icon getIcon()
          Get the icon property, performing delayed resource fetch if necessary.
 java.lang.String getLabel()
          Get the label property.
 void setIcon(ArrayResourceBundle bundle, int key)
          Set icon property such that resource fetch is postponed until needed.
 void setIcon(javax.swing.Icon icon)
          Set icon property.
 void setLabel(java.lang.String label)
          Set the label property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentInfo

public DocumentInfo(java.lang.String label,
                    javax.swing.Icon icon)
Constructor.


DocumentInfo

public DocumentInfo(java.lang.String label,
                    ArrayResourceBundle bundle,
                    int key)
Constructor, where resource fetch is postponed until needed.

See Also:
getIcon()
Method Detail

getLabel

public java.lang.String getLabel()
Get the label property.


setLabel

public void setLabel(java.lang.String label)
Set the label property.


getIcon

public javax.swing.Icon getIcon()
Get the icon property, performing delayed resource fetch if necessary.


setIcon

public void setIcon(javax.swing.Icon icon)
Set icon property. For performance reasons, users of ArrayResourceBundle are encouraged to use the version which takes a bundle and key instead.

See Also:
setIcon(ArrayResourceBundle, int)

setIcon

public void setIcon(ArrayResourceBundle bundle,
                    int key)
Set icon property such that resource fetch is postponed until needed.

See Also:
getIcon()

Extension SDK

 

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