Class ViewInfo
java.lang.Object
ro.sync.exml.workspace.api.standalone.ViewInfo
Information about a view.
- Since:
- 11.2
-
Constructor Summary
ConstructorsConstructorDescriptionViewInfo
(String viewID, JComponent component, String title, Icon icon) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the current component this view will displaygetIcon()
Get the current view icongetTitle()
Get the view titleGets the ID of the view.boolean
Check if the view information has been customized.void
setComponent
(JComponent component) Set a new component to be displayed in the viewvoid
Set the current view iconvoid
Set a new view title.
-
Constructor Details
-
ViewInfo
Constructor- Parameters:
viewID
- The unique view IDcomponent
- The component which will be placed insidetitle
- Title for the viewicon
- The view's icon
-
-
Method Details
-
getViewID
Gets the ID of the view.- Returns:
- The ID of the view.
-
getComponent
Get the current component this view will display- Returns:
- Returns the component.
-
getTitle
Get the view title- Returns:
- Returns the title.
-
setComponent
Set a new component to be displayed in the view- Parameters:
component
- The component to set.
-
setTitle
Set a new view title.- Parameters:
title
- The title to set.
-
getIcon
Get the current view icon- Returns:
- Returns the icon.
-
setIcon
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.
-