本文整理了Java中org.eclipse.swt.widgets.ToolBar.relayout()
方法的一些代码示例,展示了ToolBar.relayout()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ToolBar.relayout()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.ToolBar
类名称:ToolBar
方法名:relayout
暂无
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
void resized () {
super.resized ();
relayout ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
public void dispose () {
if (isDisposed ()) return;
ToolBar parent = this.parent;
super.dispose ();
parent.relayout ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
void setWidthInPixels (int width) {
checkWidget();
if ((style & SWT.SEPARATOR) == 0) return;
if (width < 0) return;
resizeHandle(width, (parent.style & SWT.VERTICAL) != 0 ? 6 : 15);
parent.relayout ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
void createWidget (int index) {
super.createWidget (index);
showWidget (index);
parent.relayout ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
void setWidthInPixels (int width) {
checkWidget();
if ((style & SWT.SEPARATOR) == 0) return;
if (width < 0) return;
resizeHandle(width, (parent.style & SWT.VERTICAL) != 0 ? 6 : 15);
parent.relayout ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
void createWidget (int index) {
super.createWidget (index);
showWidget (index);
parent.relayout ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
public void dispose () {
if (isDisposed ()) return;
ToolBar parent = this.parent;
super.dispose ();
parent.relayout ();
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
public void setRedraw (boolean redraw) {
checkWidget();
super.setRedraw (redraw);
if (redraw && drawCount == 0) relayout();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
public void dispose () {
if (isDisposed ()) return;
ToolBar parent = this.parent;
super.dispose ();
parent.relayout ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
void setWidthInPixels (int width) {
checkWidget();
if ((style & SWT.SEPARATOR) == 0) return;
if (width < 0) return;
resizeHandle(width, (parent.style & SWT.VERTICAL) != 0 ? 6 : 15);
parent.relayout ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
void createWidget (int index) {
super.createWidget (index);
showWidget (index);
parent.relayout ();
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
void destroyItem (ToolItem item) {
int index = 0;
while (index < itemCount) {
if (items [index] == item) break;
index++;
}
if (index == itemCount) return;
if (item == lastFocus) lastFocus = null;
System.arraycopy (items, index + 1, items, index, --itemCount - index);
items [itemCount] = null;
if (nsToolbar != null) {
nsToolbar.removeItemAtIndex(index);
} else {
item.view.removeFromSuperview();
}
relayout ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
int setBounds (int x, int y, int width, int height, boolean move, boolean resize) {
OS.gtk_toolbar_set_show_arrow (handle, false);
int result = super.setBounds (x, y, width, height, move, resize);
if ((result & RESIZED) != 0) relayout ();
if ((style & SWT.WRAP) != 0) OS.gtk_toolbar_set_show_arrow (handle, true);
return result;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
void setFontDescription (int /*long*/ font) {
super.setFontDescription (font);
ToolItem [] items = getItems ();
for (int i = 0; i < items.length; i++) {
items[i].setFontDescription (font);
}
relayout ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
int setBounds (int x, int y, int width, int height, boolean move, boolean resize) {
OS.gtk_toolbar_set_show_arrow (handle, false);
int result = super.setBounds (x, y, width, height, move, resize);
if ((result & RESIZED) != 0) relayout ();
if ((style & SWT.WRAP) != 0) OS.gtk_toolbar_set_show_arrow (handle, true);
return result;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
void setFontDescription (long /*int*/ font) {
super.setFontDescription (font);
ToolItem [] items = getItems ();
for (int i = 0; i < items.length; i++) {
items[i].setFontDescription (font);
}
relayout ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
int setBounds (int x, int y, int width, int height, boolean move, boolean resize) {
OS.gtk_toolbar_set_show_arrow (handle, false);
int result = super.setBounds (x, y, width, height, move, resize);
if ((result & RESIZED) != 0) relayout ();
if ((style & SWT.WRAP) != 0) OS.gtk_toolbar_set_show_arrow (handle, true);
return result;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
void setFontDescription (int /*long*/ font) {
super.setFontDescription (font);
ToolItem [] items = getItems ();
for (int i = 0; i < items.length; i++) {
items[i].setFontDescription (font);
}
relayout ();
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
void createItem (ToolItem item, int index) {
if (!(0 <= index && index <= itemCount)) error (SWT.ERROR_INVALID_RANGE);
if (itemCount == items.length) {
ToolItem [] newItems = new ToolItem [itemCount + 4];
System.arraycopy (items, 0, newItems, 0, items.length);
items = newItems;
}
item.createWidget();
System.arraycopy (items, index, items, index + 1, itemCount++ - index);
items [index] = item;
if (nsToolbar != null) {
nsToolbar.insertItemWithItemIdentifier(item.getItemID(), index);
} else {
view.addSubview(item.view);
}
relayout ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
/**
* Sets the control that is used to fill the bounds of
* the item when the item is a <code>SEPARATOR</code>.
*
* @param control the new control
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_INVALID_ARGUMENT - if the control has been disposed</li>
* <li>ERROR_INVALID_PARENT - if the control is not in the same widget tree</li>
* </ul>
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*/
public void setControl (Control control) {
checkWidget ();
if (control != null) {
if (control.isDisposed()) error (SWT.ERROR_INVALID_ARGUMENT);
if (control.parent != parent) error (SWT.ERROR_INVALID_PARENT);
}
if ((style & SWT.SEPARATOR) == 0) return;
if (this.control == control) return;
this.control = control;
parent.relayout ();
}
内容来源于网络,如有侵权,请联系作者删除!