本文整理了Java中org.eclipse.swt.widgets.Label.getVisible()
方法的一些代码示例,展示了Label.getVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.getVisible()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Label
类名称:Label
方法名:getVisible
暂无
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.forms
&& titleLabel.getVisible());
if (menuHyperlink.getVisible())
msize = menuHyperlink.computeSize(SWT.DEFAULT, SWT.DEFAULT);
if (msize != null && twidth != SWT.DEFAULT)
twidth -= msize.x + SPACING;
if (titleLabel.getVisible()) {
tsize = titleCache.computeSize(twidth, SWT.DEFAULT);
if (twidth != SWT.DEFAULT) {
xloc += bsize.x + SPACING;
if (titleLabel.getVisible()) {
int tw = width - HMARGIN * 2 - SPACING * 2;
String os = System.getProperty("os.name"); //$NON-NLS-1$
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.forms
&& titleLabel.getVisible());
if (menuHyperlink.getVisible())
msize = menuHyperlink.computeSize(SWT.DEFAULT, SWT.DEFAULT);
if (msize != null && twidth != SWT.DEFAULT)
twidth -= msize.x + SPACING;
if (titleLabel.getVisible()) {
tsize = titleCache.computeSize(twidth, SWT.DEFAULT);
if (twidth != SWT.DEFAULT) {
xloc += bsize.x + SPACING;
if (titleLabel.getVisible()) {
int tw = width - HMARGIN * 2 - SPACING * 2;
String os = System.getProperty("os.name"); //$NON-NLS-1$
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface
/**
* Update the specified decoration. This message should be used if the image
* or description in the decoration have changed. This message has no
* immediate effect if the decoration is not visible, and no effect at all
* if the decoration was not previously added to the field.
*
* @param decoration
* the decoration to be hidden.
*/
public void updateDecoration(FieldDecoration decoration) {
FieldDecorationData data = getDecorationData(decoration);
if (data == null) {
return;
}
if (data.label != null) {
data.label.setImage(decoration.getImage());
// If the decoration is being shown, and a hover is active,
// update the hover text to display the new description.
if (data.label.getVisible() == true && hover != null) {
showHoverText(decoration.getDescription(), data.label);
}
}
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface
/**
* Update the specified decoration. This message should be used if the image
* or description in the decoration have changed. This message has no
* immediate effect if the decoration is not visible, and no effect at all
* if the decoration was not previously added to the field.
*
* @param decoration
* the decoration to be hidden.
*/
public void updateDecoration(FieldDecoration decoration) {
FieldDecorationData data = getDecorationData(decoration);
if (data == null) {
return;
}
if (data.label != null) {
data.label.setImage(decoration.getImage());
// If the decoration is being shown, and a hover is active,
// update the hover text to display the new description.
if (data.label.getVisible() == true && hover != null) {
showHoverText(decoration.getDescription(), data.label);
}
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface
/**
* Update the specified decoration. This message should be used if the image
* or description in the decoration have changed. This message has no
* immediate effect if the decoration is not visible, and no effect at all
* if the decoration was not previously added to the field.
*
* @param decoration
* the decoration to be hidden.
*/
public void updateDecoration(FieldDecoration decoration) {
FieldDecorationData data = getDecorationData(decoration);
if (data == null) {
return;
}
if (data.label != null) {
data.label.setImage(decoration.getImage());
// If the decoration is being shown, and a hover is active,
// update the hover text to display the new description.
if (data.label.getVisible() == true && hover != null) {
showHoverText(decoration.getDescription(), data.label);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!