本文整理了Java中javax.swing.JToolBar.getClientProperty()
方法的一些代码示例,展示了JToolBar.getClientProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JToolBar.getClientProperty()
方法的具体详情如下:
包路径:javax.swing.JToolBar
类名称:JToolBar
方法名:getClientProperty
暂无
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
/**
* Method addSelectionToolTo must have been invoked prior to this on the
* JToolBar.
*
*/
public static JToggleButton addToolTo(JToolBar tb, DrawingEditor editor,
Tool tool, String labelKey,
ResourceBundleUtil labels) {
ButtonGroup group = (ButtonGroup) tb.getClientProperty("toolButtonGroup");
ToolListener toolHandler = (ToolListener) tb.getClientProperty("toolHandler");
JToggleButton t = new JToggleButton();
labels.configureToolBarButton(t, labelKey);
t.addItemListener(new ToolButtonListener(tool, editor));
t.setFocusable(false);
tool.addToolListener(toolHandler);
group.add(t);
tb.add(t);
return t;
}
代码示例来源:origin: com.github.insubstantial/substance
.getClientProperty(SubstanceLookAndFeel.CORNER_RADIUS);
if (toolbarProp instanceof Float)
return Math.min(maxRadius, ((Float) toolbarProp).floatValue());
代码示例来源:origin: org.java.net.substance/substance
.getClientProperty(SubstanceLookAndFeel.CORNER_RADIUS);
if (toolbarProp instanceof Float)
return Math.min(maxRadius, ((Float) toolbarProp).floatValue());
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
if (tb.getClientProperty("toolButtonGroup") instanceof ButtonGroup) {
group = (ButtonGroup) tb.getClientProperty("toolButtonGroup");
} else {
group = new ButtonGroup();
final JToggleButton defaultToolButton = t;
if (!(tb.getClientProperty("toolHandler") instanceof ToolListener)) {
ToolListener toolHandler;
toolHandler = new ToolAdapter() {
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
Icon icon = (Icon) c.getClientProperty(PaletteToolBarUI.TOOLBAR_ICON_PROPERTY);
if (icon != null) {
icon.paintIcon(component, gr, barX + (barW - icon.getIconWidth()) / 2,
int textIconGap = (c.getClientProperty(PaletteToolBarUI.TOOLBAR_ICON_PROPERTY) instanceof Integer) ?
(Integer) c.getClientProperty(PaletteToolBarUI.TOOLBAR_ICON_PROPERTY) : 2;
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
Object rolloverProp = toolBar.getClientProperty(IS_ROLLOVER);
if (rolloverProp == null) {
rolloverProp = UIManager.get("ToolBar.isRollover");
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
Object rolloverProp= toolBar.getClientProperty(IS_ROLLOVER);
if (rolloverProp != null)
内容来源于网络,如有侵权,请联系作者删除!