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 void
dispose()
Free resourcesboolean
equals(java.lang.Object obj)
protected org.eclipse.swt.graphics.Color
getBackground()
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 int
getTileHeight()
protected java.util.List<Tile<T>>
getTiles()
Returns the rendered tilesprotected int
getTileWidth()
int
hashCode()
protected void
setBackground(org.eclipse.swt.graphics.Color arg0)
Setterprotected void
setComparator(java.util.Comparator<T> comparator)
Sets an Comparatorprotected void
setDecoratorBackgroundColor(DecoratorColor<T> decorator)
Setterprotected void
setDecoratorForegroundColor(DecoratorColor<T> decorator)
Setterprotected void
setDecoratorLabel(DecoratorString<T> decorator)
Setterprotected void
setDecoratorLineColor(DecoratorColor<T> decorator)
Setterprotected void
setDecoratorLineStyle(DecoratorInteger<T> decorator)
Setterprotected void
setDecoratorLineWidth(DecoratorInteger<T> decorator)
Setterprotected void
setFilter(Filter<T> filter)
Sets a filterprotected void
setHeight(int height)
Sets the heightprotected void
setItems(java.util.List<T> items)
Sets the itemsprotected void
setTileHeight(int height)
Sets the tile widthprotected void
setTileMarginX(int margin)
Sets the tile widthprotected void
setTileMarginY(int margin)
Sets the tile widthprotected void
setTileWidth(int width)
Sets the tile widthprotected void
setWidth(int width)
Sets the widthjava.lang.String
toString()
protected void
update()
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:
clone
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
dispose
protected void dispose()Free resources -
getBackground
protected org.eclipse.swt.graphics.Color getBackground()Description copied from class:Frame
Returns the background color- Specified by:
getBackground
in classFrame<T>
-
getComparator
Description copied from class:Frame
Returns the comparator- Specified by:
getComparator
in classFrame<T>
-
getDecoratorBackgroundColor
Description copied from class:Frame
Returns a decorator- Specified by:
getDecoratorBackgroundColor
in classFrame<T>
-
getDecoratorForegroundColor
Description copied from class:Frame
Returns a decorator- Specified by:
getDecoratorForegroundColor
in classFrame<T>
-
getDecoratorLabel
Description copied from class:Frame
Returns a decorator- Specified by:
getDecoratorLabel
in classFrame<T>
-
getDecoratorLineColor
Description copied from class:Frame
Returns a decorator- Specified by:
getDecoratorLineColor
in classFrame<T>
-
getDecoratorLineStyle
Description copied from class:Frame
Returns a decorator- Specified by:
getDecoratorLineStyle
in classFrame<T>
-
getDecoratorLineWidth
Description copied from class:Frame
Returns a decorator- Specified by:
getDecoratorLineWidth
in classFrame<T>
-
getFilter
Description copied from class:Frame
Returns the filter -
getItems
Description copied from class:Frame
Returns the elements -
getTileHeight
protected int getTileHeight()- Returns:
- the tileHeight
-
getTiles
Description copied from class:Frame
Returns 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:Frame
Updates the frame
-