Package editor
Class EditorTabHistoryHandler.EditorTabContext
- java.lang.Object
-
- editor.EditorTabHistoryHandler.EditorTabContext
-
- All Implemented Interfaces:
ITabHistoryContext,ILabel
- Enclosing class:
- EditorTabHistoryHandler
static class EditorTabHistoryHandler.EditorTabContext extends java.lang.Object implements ITabHistoryContext
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.file.Path_contentId
-
Constructor Summary
Constructors Constructor Description EditorTabContext(EditorHost editor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(ITabHistoryContext other)booleanequals(java.lang.Object o)java.nio.file.PathgetContentId()java.lang.StringgetDisplayName()A human readable name, typically displayed as a caption.javax.swing.IcongetIcon(int iTypeFlags)Supplies an icon for this labelinthashCode()booleanrepresents(EditorHost editor)
-
-
-
Constructor Detail
-
EditorTabContext
public EditorTabContext(EditorHost editor)
-
-
Method Detail
-
getDisplayName
public java.lang.String getDisplayName()
Description copied from interface:ILabelA human readable name, typically displayed as a caption.- Specified by:
getDisplayNamein interfaceILabel
-
getIcon
public javax.swing.Icon getIcon(int iTypeFlags)
Description copied from interface:ILabelSupplies an icon for this label- Specified by:
getIconin interfaceILabel- Parameters:
iTypeFlags- one flag specifying the requested icon's type- Returns:
- an icon for this label
- See Also:
BeanInfo.ICON_COLOR_16x16,BeanInfo.ICON_MONO_16x16,BeanInfo.ICON_COLOR_32x32,BeanInfo.ICON_MONO_32x32,ILabel.OPEN
-
represents
public boolean represents(EditorHost editor)
- Specified by:
representsin interfaceITabHistoryContext- Returns:
- true if this history context represents the given view, false otherwise
-
equals
public boolean equals(ITabHistoryContext other)
- Specified by:
equalsin interfaceITabHistoryContext
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceITabHistoryContext- Overrides:
hashCodein classjava.lang.Object
-
getContentId
public java.nio.file.Path getContentId()
- Specified by:
getContentIdin interfaceITabHistoryContext
-
-