@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public class ViewInfo
extends java.lang.Object
Constructor and Description |
---|
ViewInfo(java.lang.String viewID,
javax.swing.JComponent component,
java.lang.String title,
javax.swing.Icon icon)
Constructor
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
getComponent()
Get the current component this view will display
|
javax.swing.Icon |
getIcon()
Get the current view icon
|
java.lang.String |
getTitle()
Get the view title
|
java.lang.String |
getViewID()
Gets the ID of the view.
|
boolean |
isCustomized()
Check if the view information has been customized.
|
void |
setComponent(javax.swing.JComponent component)
Set a new component to be displayed in the view
|
void |
setIcon(javax.swing.Icon icon)
Set the current view icon
|
void |
setTitle(java.lang.String title)
Set a new view title.
|
public ViewInfo(java.lang.String viewID, javax.swing.JComponent component, java.lang.String title, javax.swing.Icon icon)
viewID
- The unique view IDcomponent
- The component which will be placed insidetitle
- Title for the viewicon
- The view's iconpublic java.lang.String getViewID()
public javax.swing.JComponent getComponent()
public java.lang.String getTitle()
public void setComponent(javax.swing.JComponent component)
component
- The component to set.public void setTitle(java.lang.String title)
title
- The title to set.public javax.swing.Icon getIcon()
public void setIcon(javax.swing.Icon icon)
icon
- The icon to set.public boolean isCustomized()
true
if the view information has been customized.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.