Package org.eclipse.nebula.widgets.tiles
Class FrameStatic<T>
java.lang.Object
org.eclipse.nebula.widgets.tiles.Frame<T>
org.eclipse.nebula.widgets.tiles.FrameStatic<T>
- Type Parameters:
T-
- All Implemented Interfaces:
java.lang.Cloneable
class FrameStatic<T> extends Frame<T> implements java.lang.Cloneable
This class implements a static frame
-
Constructor Summary
Constructors Constructor Description FrameStatic(java.util.List<T> elements, Filter<T> filter, java.util.Comparator<T> Comparator, org.eclipse.swt.graphics.Color background, int width, int height, int tileWidth, int tileHeight, int tileMarginX, int tileMarginY, DecoratorInteger<T> lineWidthDecorator, DecoratorInteger<T> lineStyleDecorator, DecoratorColor<T> foregroundColorDecorator, DecoratorColor<T> backgroundColorDecorator, DecoratorColor<T> lineColorDecorator, DecoratorString<T> labelDecorator, Tiles<T> tiles)Clone constructorFrameStatic(Tiles<T> tiles)Creates a new instance -
Method Summary
Modifier and Type Method Description FrameStatic<T>clone()protected voiddispose()Free resourcesbooleanequals(java.lang.Object obj)protected org.eclipse.swt.graphics.ColorgetBackground()Returns the background colorprotected java.util.Comparator<T>getComparator()Returns the comparatorprotected DecoratorColor<T>getDecoratorBackgroundColor()Returns a decoratorprotected DecoratorColor<T>getDecoratorForegroundColor()Returns a decoratorprotected DecoratorString<T>getDecoratorLabel()Returns a decoratorprotected DecoratorColor<T>getDecoratorLineColor()Returns a decoratorprotected DecoratorInteger<T>getDecoratorLineStyle()Returns a decoratorprotected DecoratorInteger<T>getDecoratorLineWidth()Returns a decoratorprotected Filter<T>getFilter()Returns the filterprotected java.util.List<T>getItems()Returns the elementsprotected intgetTileHeight()protected java.util.List<Tile<T>>getTiles()Returns the rendered tilesprotected intgetTileWidth()inthashCode()protected voidsetBackground(org.eclipse.swt.graphics.Color arg0)Setterprotected voidsetComparator(java.util.Comparator<T> comparator)Sets an Comparatorprotected voidsetDecoratorBackgroundColor(DecoratorColor<T> decorator)Setterprotected voidsetDecoratorForegroundColor(DecoratorColor<T> decorator)Setterprotected voidsetDecoratorLabel(DecoratorString<T> decorator)Setterprotected voidsetDecoratorLineColor(DecoratorColor<T> decorator)Setterprotected voidsetDecoratorLineStyle(DecoratorInteger<T> decorator)Setterprotected voidsetDecoratorLineWidth(DecoratorInteger<T> decorator)Setterprotected voidsetFilter(Filter<T> filter)Sets a filterprotected voidsetHeight(int height)Sets the heightprotected voidsetItems(java.util.List<T> items)Sets the itemsprotected voidsetTileHeight(int height)Sets the tile widthprotected voidsetTileMarginX(int margin)Sets the tile widthprotected voidsetTileMarginY(int margin)Sets the tile widthprotected voidsetTileWidth(int width)Sets the tile widthprotected voidsetWidth(int width)Sets the widthjava.lang.StringtoString()protected voidupdate()Updates the frame
-
Constructor Details
-
FrameStatic
FrameStatic(java.util.List<T> elements, Filter<T> filter, java.util.Comparator<T> Comparator, org.eclipse.swt.graphics.Color background, int width, int height, int tileWidth, int tileHeight, int tileMarginX, int tileMarginY, DecoratorInteger<T> lineWidthDecorator, DecoratorInteger<T> lineStyleDecorator, DecoratorColor<T> foregroundColorDecorator, DecoratorColor<T> backgroundColorDecorator, DecoratorColor<T> lineColorDecorator, DecoratorString<T> labelDecorator, Tiles<T> tiles)Clone constructor- Parameters:
backgroundColor-foregroundColor-lineColor-elements-filter-Comparator-background-width-height-tileWidth-tileHeight-tileMarginX-tileMarginY-lineWidthDecorator-lineStyleDecorator-foregroundColorDecorator-backgroundColorDecorator-lineColorDecorator-labelDecorator-tiles-
-
FrameStatic
Creates a new instance- Parameters:
tiles-
-
-
Method Details
-
clone
- Overrides:
clonein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
dispose
protected void dispose()Free resources -
getBackground
protected org.eclipse.swt.graphics.Color getBackground()Description copied from class:FrameReturns the background color- Specified by:
getBackgroundin classFrame<T>
-
getComparator
Description copied from class:FrameReturns the comparator- Specified by:
getComparatorin classFrame<T>
-
getDecoratorBackgroundColor
Description copied from class:FrameReturns a decorator- Specified by:
getDecoratorBackgroundColorin classFrame<T>
-
getDecoratorForegroundColor
Description copied from class:FrameReturns a decorator- Specified by:
getDecoratorForegroundColorin classFrame<T>
-
getDecoratorLabel
Description copied from class:FrameReturns a decorator- Specified by:
getDecoratorLabelin classFrame<T>
-
getDecoratorLineColor
Description copied from class:FrameReturns a decorator- Specified by:
getDecoratorLineColorin classFrame<T>
-
getDecoratorLineStyle
Description copied from class:FrameReturns a decorator- Specified by:
getDecoratorLineStylein classFrame<T>
-
getDecoratorLineWidth
Description copied from class:FrameReturns a decorator- Specified by:
getDecoratorLineWidthin classFrame<T>
-
getFilter
Description copied from class:FrameReturns the filter -
getItems
Description copied from class:FrameReturns the elements -
getTileHeight
protected int getTileHeight()- Returns:
- the tileHeight
-
getTiles
Description copied from class:FrameReturns the rendered tiles -
getTileWidth
protected int getTileWidth()- Returns:
- the tileWidth
-
setBackground
protected void setBackground(org.eclipse.swt.graphics.Color arg0)Setter- Parameters:
arg0-
-
setComparator
Sets an Comparator- Parameters:
comparator-
-
setDecoratorBackgroundColor
Setter- Parameters:
decorator-
-
setDecoratorForegroundColor
Setter- Parameters:
decorator-
-
setDecoratorLabel
Setter- Parameters:
decorator-
-
setDecoratorLineColor
Setter- Parameters:
decorator-
-
setDecoratorLineStyle
Setter- Parameters:
decorator-
-
setDecoratorLineWidth
Setter- Parameters:
decorator-
-
setFilter
Sets a filter- Parameters:
filter-
-
setHeight
protected void setHeight(int height)Sets the height- Parameters:
height-
-
setItems
Sets the items- Parameters:
items-
-
setTileHeight
protected void setTileHeight(int height)Sets the tile width- Parameters:
width-
-
setTileMarginX
protected void setTileMarginX(int margin)Sets the tile width- Parameters:
width-
-
setTileMarginY
protected void setTileMarginY(int margin)Sets the tile width- Parameters:
width-
-
setTileWidth
protected void setTileWidth(int width)Sets the tile width- Parameters:
width-
-
setWidth
protected void setWidth(int width)Sets the width- Parameters:
width-
-
update
protected void update()Description copied from class:FrameUpdates the frame
-