本文整理了Java中org.eclipse.swt.widgets.TableColumn.getAlignment()
方法的一些代码示例,展示了TableColumn.getAlignment()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableColumn.getAlignment()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.TableColumn
类名称:TableColumn
方法名:getAlignment
[英]Returns a value which describes the position of the text or image in the receiver. The value will be one of LEFT
, RIGHT
or CENTER
.
[中]返回一个值,该值描述文本或图像在接收器中的位置。该值将是LEFT
、RIGHT
或CENTER
中的一个。
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
private static String getAlignment( TableColumn column ) {
int alignment = column.getAlignment();
String result = "left";
if( ( alignment & SWT.CENTER ) != 0 ) {
result = "center";
} else if( ( alignment & SWT.RIGHT ) != 0 ) {
result = "right";
}
return result;
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt.q07
public static boolean hasAlignmentChanged( final TableColumn column ) {
return WidgetLCAUtil.hasChanged( column,
PROP_ALIGNMENT,
new Integer( column.getAlignment() ),
DEFAULT_ALIGNMENT );
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt.q07
public static void preserveAlignment( final TableColumn column ) {
IWidgetAdapter adapter = WidgetUtil.getAdapter( column );
adapter.preserve( PROP_ALIGNMENT, new Integer( column.getAlignment() ) );
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt.q07
private static void writeAlignment( final TableColumn column )
throws IOException
{
JSWriter writer = JSWriter.getWriterFor( column );
if( TableLCAUtil.hasAlignmentChanged( column ) ) {
Integer newValue = new Integer( column.getAlignment() );
JSVar alignment = JSConst.QX_CONST_ALIGN_LEFT;
if( newValue.intValue() == SWT.CENTER ) {
alignment = JSConst.QX_CONST_ALIGN_CENTER;
} else if( newValue.intValue() == SWT.RIGHT ) {
alignment = JSConst.QX_CONST_ALIGN_RIGHT;
}
writer.set( "horizontalChildrenAlign", new Object[] { alignment } );
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
x += 2;
} else {
int alignmnent = column.getAlignment();
switch (alignmnent) {
case SWT.LEFT:
x += 5;
} else {
int alignmnent = column.getAlignment();
switch (alignmnent) {
case SWT.LEFT:
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
x += 2;
} else {
int alignmnent = column.getAlignment();
switch (alignmnent) {
case SWT.LEFT:
x += 5;
} else {
int alignmnent = column.getAlignment();
switch (alignmnent) {
case SWT.LEFT:
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
x += 2;
} else {
int alignmnent = column.getAlignment();
switch (alignmnent) {
case SWT.LEFT:
x += 5;
} else {
int alignmnent = column.getAlignment();
switch (alignmnent) {
case SWT.LEFT:
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
x += 2;
} else {
int alignmnent = column.getAlignment();
switch (alignmnent) {
case SWT.LEFT:
x += 5;
} else {
int alignmnent = column.getAlignment();
switch (alignmnent) {
case SWT.LEFT:
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
x += 2;
} else {
int alignmnent = column.getAlignment();
switch (alignmnent) {
case SWT.LEFT:
x += 5;
} else {
int alignmnent = column.getAlignment();
switch (alignmnent) {
case SWT.LEFT:
内容来源于网络,如有侵权,请联系作者删除!