|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.extended.tab.DocumentData
public class DocumentData
This class represents basic data for single document opened in WebDocumentPane.
WebDocumentPane
,
PaneData
Field Summary | |
---|---|
protected java.awt.Color |
background
Document tab background color. |
protected boolean |
closeable
Whether this document is closeable or not. |
protected java.awt.Component |
component
Document content. |
protected boolean |
draggable
Whether this document is draggable or not. |
protected javax.swing.Icon |
icon
Document icon. |
protected java.lang.String |
id
Document ID. |
protected java.lang.String |
title
Document title. |
Constructor Summary | |
---|---|
DocumentData(java.lang.String id,
javax.swing.Icon icon,
java.awt.Component component)
Constructs new document. |
|
DocumentData(java.lang.String id,
javax.swing.Icon icon,
java.lang.String title,
java.awt.Color background,
boolean closeable,
boolean draggable,
java.awt.Component component)
Constructs new document. |
|
DocumentData(java.lang.String id,
javax.swing.Icon icon,
java.lang.String title,
java.awt.Color background,
boolean closeable,
java.awt.Component component)
Constructs new document. |
|
DocumentData(java.lang.String id,
javax.swing.Icon icon,
java.lang.String title,
java.awt.Color background,
java.awt.Component component)
Constructs new document. |
|
DocumentData(java.lang.String id,
javax.swing.Icon icon,
java.lang.String title,
java.awt.Component component)
Constructs new document. |
|
DocumentData(java.lang.String id,
java.lang.String title,
java.awt.Component component)
Constructs new document. |
Method Summary | |
---|---|
java.lang.String |
getActualTitle()
Returns translated document title. |
java.awt.Color |
getBackground()
Returns document tab background color. |
java.awt.Component |
getComponent()
Returns document content. |
javax.swing.Icon |
getIcon()
Returns document icon. |
java.lang.String |
getId()
Returns document ID. |
java.lang.String |
getTitle()
Returns document title. |
boolean |
isCloseable()
Returns whether document is closeable or not. |
boolean |
isDraggable()
Returns whether document is draggable or not. |
void |
setBackground(java.awt.Color background)
Sets document tab background color. |
void |
setCloseable(boolean closeable)
Sets whether document is closeable or not. |
void |
setComponent(java.awt.Component component)
Sets document content. |
void |
setDraggable(boolean draggable)
Sets whether document is draggable or not. |
void |
setIcon(javax.swing.Icon icon)
Sets document icon. |
void |
setId(java.lang.String id)
Sets document ID. |
void |
setTitle(java.lang.String title)
Sets document title. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String id
protected javax.swing.Icon icon
protected java.lang.String title
protected java.awt.Color background
protected boolean closeable
protected boolean draggable
protected java.awt.Component component
Constructor Detail |
---|
public DocumentData(java.lang.String id, java.lang.String title, java.awt.Component component)
id
- document IDtitle
- document titlecomponent
- document contentpublic DocumentData(java.lang.String id, javax.swing.Icon icon, java.awt.Component component)
id
- document IDicon
- document iconcomponent
- document contentpublic DocumentData(java.lang.String id, javax.swing.Icon icon, java.lang.String title, java.awt.Component component)
id
- document IDicon
- document icontitle
- document titlecomponent
- document contentpublic DocumentData(java.lang.String id, javax.swing.Icon icon, java.lang.String title, java.awt.Color background, java.awt.Component component)
id
- document IDicon
- document icontitle
- document titlebackground
- document tab background colorcomponent
- document contentpublic DocumentData(java.lang.String id, javax.swing.Icon icon, java.lang.String title, java.awt.Color background, boolean closeable, java.awt.Component component)
id
- document IDicon
- document icontitle
- document titlebackground
- document tab background colorcloseable
- whether document is closeable or notcomponent
- document contentpublic DocumentData(java.lang.String id, javax.swing.Icon icon, java.lang.String title, java.awt.Color background, boolean closeable, boolean draggable, java.awt.Component component)
id
- document IDicon
- document icontitle
- document titlebackground
- document tab background colorcloseable
- whether document is closeable or notdraggable
- whether document is draggable or notcomponent
- document contentMethod Detail |
---|
public java.lang.String getId()
public void setId(java.lang.String id)
id
- new document IDpublic javax.swing.Icon getIcon()
public void setIcon(javax.swing.Icon icon)
icon
- new document iconpublic java.lang.String getTitle()
public java.lang.String getActualTitle()
public void setTitle(java.lang.String title)
title
- new document titlepublic java.awt.Color getBackground()
public void setBackground(java.awt.Color background)
background
- document tab background colorpublic boolean isCloseable()
public void setCloseable(boolean closeable)
closeable
- whether document is closeable or notpublic boolean isDraggable()
public void setDraggable(boolean draggable)
draggable
- whether document is draggable or notpublic java.awt.Component getComponent()
public void setComponent(java.awt.Component component)
component
- new document content
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |