Class ViewInfo
- java.lang.Object
-
- ro.sync.exml.workspace.api.standalone.ViewInfo
-
@API(type=NOT_EXTENDABLE, src=PUBLIC) public class ViewInfo extends java.lang.Object
Information about a view.- Since:
- 11.2
-
-
Constructor Summary
Constructors Constructor Description ViewInfo(java.lang.String viewID, javax.swing.JComponent component, java.lang.String title, javax.swing.Icon icon)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JComponent
getComponent()
Get the current component this view will displayjavax.swing.Icon
getIcon()
Get the current view iconjava.lang.String
getTitle()
Get the view titlejava.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 viewvoid
setIcon(javax.swing.Icon icon)
Set the current view iconvoid
setTitle(java.lang.String title)
Set a new view title.
-
-
-
Constructor Detail
-
ViewInfo
public ViewInfo(java.lang.String viewID, javax.swing.JComponent component, java.lang.String title, javax.swing.Icon icon)
Constructor- Parameters:
viewID
- The unique view IDcomponent
- The component which will be placed insidetitle
- Title for the viewicon
- The view's icon
-
-
Method Detail
-
getViewID
public java.lang.String getViewID()
Gets the ID of the view.- Returns:
- The ID of the view.
-
getComponent
public javax.swing.JComponent getComponent()
Get the current component this view will display- Returns:
- Returns the component.
-
getTitle
public java.lang.String getTitle()
Get the view title- Returns:
- Returns the title.
-
setComponent
public void setComponent(javax.swing.JComponent component)
Set a new component to be displayed in the view- Parameters:
component
- The component to set.
-
setTitle
public void setTitle(java.lang.String title)
Set a new view title.- Parameters:
title
- The title to set.
-
getIcon
public javax.swing.Icon getIcon()
Get the current view icon- Returns:
- Returns the icon.
-
setIcon
public void setIcon(javax.swing.Icon icon)
Set the current view icon- Parameters:
icon
- The icon to set.
-
isCustomized
public boolean isCustomized()
Check if the view information has been customized.- Returns:
true
if the view information has been customized.
-
-