|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.utgenome.gwt.widget.client.Style
public class Style
Style
is a helper class to edit CSS (Cascading Style Sheet) design of widgets by setting their DOM
properties.
Method Summary | |
---|---|
static void |
backgroundColor(com.google.gwt.user.client.ui.Widget w,
String color)
|
static void |
backgroundImage(com.google.gwt.user.client.ui.Widget w,
String imageURL)
|
static void |
backgroundNoRepeat(com.google.gwt.user.client.ui.Widget w)
|
static void |
backgroundPosition(com.google.gwt.user.client.ui.Widget w,
String value)
|
static void |
backgroundRepeat(com.google.gwt.user.client.ui.Widget w)
|
static void |
backgroundRepeatX(com.google.gwt.user.client.ui.Widget w)
|
static void |
backgroundRepeatY(com.google.gwt.user.client.ui.Widget w)
|
static void |
bold(com.google.gwt.user.client.ui.Widget w)
|
static void |
border(com.google.gwt.user.client.ui.Widget w,
int NEWSflag,
int borderWidth,
String borderType,
String color)
|
static void |
border(com.google.gwt.user.client.ui.Widget w,
int borderWidth,
String borderType,
String color)
|
static void |
borderCollapse(com.google.gwt.user.client.ui.Widget w)
|
static void |
cursor(com.google.gwt.user.client.ui.Widget w,
String cursorType)
|
static void |
disableScroll(com.google.gwt.user.client.ui.Widget w)
|
static void |
fontColor(com.google.gwt.user.client.ui.Widget w,
String color)
|
static void |
fontFamily(com.google.gwt.user.client.ui.Widget w,
String fontFamily)
|
static void |
fontFamily(com.google.gwt.user.client.ui.Widget w,
String[] fontFamily)
|
static void |
fontSize(com.google.gwt.user.client.ui.Widget w,
int pixelFontSize)
|
static void |
fullBlock(com.google.gwt.user.client.ui.Widget w)
|
static void |
fullHeight(com.google.gwt.user.client.ui.Widget w)
|
static void |
fullSize(com.google.gwt.user.client.ui.Widget w)
|
static void |
fullWidth(com.google.gwt.user.client.ui.Widget w)
|
static String |
getCSS3DOMprefix()
|
static String |
getCSS3prefix()
|
static void |
hideHorizontalScrollBar(com.google.gwt.user.client.ui.Widget w)
|
static void |
hideVerticalScrollBar(com.google.gwt.user.client.ui.Widget w)
|
static void |
italic(com.google.gwt.user.client.ui.Widget w)
|
static void |
margin(com.google.gwt.user.client.ui.Widget w,
int marginSize)
|
static void |
margin(com.google.gwt.user.client.ui.Widget w,
int NEWSflag,
int marginSize)
|
static void |
normal(com.google.gwt.user.client.ui.Widget w)
|
static void |
nowrap(com.google.gwt.user.client.ui.Widget w)
|
static void |
opacity(com.google.gwt.user.client.ui.Widget w,
double alpha)
Set the opacity of the Widget |
static void |
overflowAuto(com.google.gwt.user.client.ui.Widget w)
|
static void |
overflowHidden(com.google.gwt.user.client.ui.Widget w)
|
static void |
padding(com.google.gwt.user.client.ui.Widget w,
int paddingSize)
|
static void |
padding(com.google.gwt.user.client.ui.Widget w,
int NEWSflag,
int paddingSize)
|
static void |
position(com.google.gwt.user.client.ui.Widget w,
String value)
|
static void |
preserveWhiteSpace(com.google.gwt.user.client.ui.Widget w)
|
static void |
right(com.google.gwt.user.client.ui.Widget w,
String value)
Set the position of the widget from the right border |
static void |
scale(com.google.gwt.user.client.ui.Widget w,
double scale)
|
static void |
scale(com.google.gwt.user.client.ui.Widget w,
double scaleX,
double scaleY)
|
static void |
scaleX(com.google.gwt.user.client.ui.Widget w,
double scaleX)
|
static void |
scaleXwithAnimation(com.google.gwt.user.client.ui.Widget w,
double scaleX,
double durationInSec)
|
static void |
scaleXwithAnimation(com.google.gwt.user.client.ui.Widget w,
double scaleX,
int newPixelX,
double durationInSec)
|
static void |
scaleY(com.google.gwt.user.client.ui.Widget w,
double scaleY)
|
static void |
scrollX(com.google.gwt.user.client.ui.Widget w,
int destX,
double sec)
|
static void |
scrollY(com.google.gwt.user.client.ui.Widget w,
int destY,
double sec)
|
static void |
semiTransparentBackground(com.google.gwt.user.client.ui.Widget w,
String colorCode,
float alpha)
Make the background of the widget semi-transparent color |
static void |
set(com.google.gwt.user.client.ui.Widget w,
String cssPropertyName,
String value)
Set CSS style |
static void |
setExt(com.google.gwt.user.client.ui.Widget w,
String property,
String value)
Set a CSS3 property with a browser-specific prefix. |
static void |
textAlign(com.google.gwt.user.client.ui.Widget w,
String value)
Set the text alignment of the widget |
static void |
transform(com.google.gwt.user.client.ui.Widget w,
String transformCommand)
|
static void |
translate(com.google.gwt.user.client.ui.Widget w,
String translateCommand)
|
static void |
translateX(com.google.gwt.user.client.ui.Widget w,
int x)
|
static void |
translateY(com.google.gwt.user.client.ui.Widget w,
int y)
|
static void |
trimOverflowedText(com.google.gwt.user.client.ui.Widget w)
|
static void |
verticalAlign(com.google.gwt.user.client.ui.Widget w,
String value)
|
static void |
visibilityHidden(com.google.gwt.user.client.ui.Widget w)
|
static void |
zIndex(com.google.gwt.user.client.ui.Widget w,
int zIndex)
set the overlap position of the widget. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CSS_BORDER
public static final String CSS_PADDING
public static final String CSS_MARGIN
public static final String CSS_FONT_COLOR
public static final String CSS_FONT_WEIGHT
public static final String CSS_FONT_SIZE
public static final String CSS_FONT_FAMILY
public static final String CSS_WHITESPACE
public static final String CSS_NOWRAP
public static final String CSS_BACKGROUND_IMAGE
public static final String CSS_BACKGROUND_REPEAT
public static final String CSS_BACKGROUND_POSITION
public static final String CSS_BACKGROUND_COLOR
public static final String CSS_OVERFLOW_X
public static final String CSS_OVERFLOW_Y
public static final String OVERFLOW_AUTO
public static final String OVERFLOW_HIDDEN
public static final String CSS_Z_INDEX
public static final String BORDER_SOLID
public static final String BORDER_DASHED
public static final String BORDER_INSET
public static final String BORDER_OUTSET
public static final String COLOR_WHITE
public static final String COLOR_RED
public static final String COLOR_BLACK
public static final String COLOR_GRAY
public static final String COLOR_SKYBLUE
public static int TOP
public static int BOTTOM
public static int LEFT
public static int RIGHT
public static final String CSS_BORDER_COLLAPSE
public static final String CSS_CURSOR
public static final String CURSOR_MOVE
public static final String CURSOR_AUTO
public static final String CURSOR_POINTER
public static final String CURSOR_CROSSHAIR
public static final String CURSOR_RESIZE_E
public static final String CURSOR_RESIZE_N
public static final String CURSOR_RESIZE_SE
public static final String CURSOR_TEXT
public static final String CURSOR_HELP
public static final String CSS_DISPLAY
public static final String DISPLAY_BLOCK
public static final String CSS_VERTICAL_ALIGN
Method Detail |
---|
public static void visibilityHidden(com.google.gwt.user.client.ui.Widget w)
public static void zIndex(com.google.gwt.user.client.ui.Widget w, int zIndex)
w
- the widgetzIndex
- public static void bold(com.google.gwt.user.client.ui.Widget w)
public static void normal(com.google.gwt.user.client.ui.Widget w)
public static void italic(com.google.gwt.user.client.ui.Widget w)
public static void fontSize(com.google.gwt.user.client.ui.Widget w, int pixelFontSize)
public static void fontFamily(com.google.gwt.user.client.ui.Widget w, String[] fontFamily)
public static void fontFamily(com.google.gwt.user.client.ui.Widget w, String fontFamily)
public static void nowrap(com.google.gwt.user.client.ui.Widget w)
public static void preserveWhiteSpace(com.google.gwt.user.client.ui.Widget w)
public static void overflowHidden(com.google.gwt.user.client.ui.Widget w)
public static void disableScroll(com.google.gwt.user.client.ui.Widget w)
public static void hideHorizontalScrollBar(com.google.gwt.user.client.ui.Widget w)
public static void hideVerticalScrollBar(com.google.gwt.user.client.ui.Widget w)
public static void backgroundImage(com.google.gwt.user.client.ui.Widget w, String imageURL)
w
- imageURL
- background image url relative to the GWT module base URLpublic static void backgroundNoRepeat(com.google.gwt.user.client.ui.Widget w)
public static void backgroundPosition(com.google.gwt.user.client.ui.Widget w, String value)
public static void backgroundRepeat(com.google.gwt.user.client.ui.Widget w)
public static void backgroundRepeatY(com.google.gwt.user.client.ui.Widget w)
public static void backgroundRepeatX(com.google.gwt.user.client.ui.Widget w)
public static void backgroundColor(com.google.gwt.user.client.ui.Widget w, String color)
public static void fullWidth(com.google.gwt.user.client.ui.Widget w)
public static void fullHeight(com.google.gwt.user.client.ui.Widget w)
public static void fullSize(com.google.gwt.user.client.ui.Widget w)
public static void border(com.google.gwt.user.client.ui.Widget w, int borderWidth, String borderType, String color)
w
- borderWidth
- pixel widthborderType
- color
- public static void border(com.google.gwt.user.client.ui.Widget w, int NEWSflag, int borderWidth, String borderType, String color)
w
- NEWSflag
- borderWidth
- pixel widthborderType
- color
- public static void borderCollapse(com.google.gwt.user.client.ui.Widget w)
public static void padding(com.google.gwt.user.client.ui.Widget w, int paddingSize)
w
- paddingSize
- public static void padding(com.google.gwt.user.client.ui.Widget w, int NEWSflag, int paddingSize)
public static void margin(com.google.gwt.user.client.ui.Widget w, int marginSize)
public static void margin(com.google.gwt.user.client.ui.Widget w, int NEWSflag, int marginSize)
public static void cursor(com.google.gwt.user.client.ui.Widget w, String cursorType)
public static void fullBlock(com.google.gwt.user.client.ui.Widget w)
public static void verticalAlign(com.google.gwt.user.client.ui.Widget w, String value)
public static void right(com.google.gwt.user.client.ui.Widget w, String value)
w
- value
- public static void textAlign(com.google.gwt.user.client.ui.Widget w, String value)
w
- value
- public static void trimOverflowedText(com.google.gwt.user.client.ui.Widget w)
public static void semiTransparentBackground(com.google.gwt.user.client.ui.Widget w, String colorCode, float alpha)
colorCode
- Hex RGB color codepublic static void set(com.google.gwt.user.client.ui.Widget w, String cssPropertyName, String value)
w
- cssPropertyName
- value
- public static void position(com.google.gwt.user.client.ui.Widget w, String value)
public static void overflowAuto(com.google.gwt.user.client.ui.Widget w)
public static void fontColor(com.google.gwt.user.client.ui.Widget w, String color)
public static void transform(com.google.gwt.user.client.ui.Widget w, String transformCommand)
public static void scale(com.google.gwt.user.client.ui.Widget w, double scale)
public static void scale(com.google.gwt.user.client.ui.Widget w, double scaleX, double scaleY)
public static void scaleX(com.google.gwt.user.client.ui.Widget w, double scaleX)
public static void scaleXwithAnimation(com.google.gwt.user.client.ui.Widget w, double scaleX, double durationInSec)
public static void scaleXwithAnimation(com.google.gwt.user.client.ui.Widget w, double scaleX, int newPixelX, double durationInSec)
public static void scaleY(com.google.gwt.user.client.ui.Widget w, double scaleY)
public static void translate(com.google.gwt.user.client.ui.Widget w, String translateCommand)
public static void translateX(com.google.gwt.user.client.ui.Widget w, int x)
public static void translateY(com.google.gwt.user.client.ui.Widget w, int y)
public static String getCSS3prefix()
public static String getCSS3DOMprefix()
public static void setExt(com.google.gwt.user.client.ui.Widget w, String property, String value)
w
- property
- value
- public static void scrollX(com.google.gwt.user.client.ui.Widget w, int destX, double sec)
public static void scrollY(com.google.gwt.user.client.ui.Widget w, int destY, double sec)
public static void opacity(com.google.gwt.user.client.ui.Widget w, double alpha)
w
- alpha
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |