当前位置: 首页>>代码示例>>Java>>正文


Java HeaderStyle.BOTH属性代码示例

本文整理汇总了Java中com.jgoodies.looks.HeaderStyle.BOTH属性的典型用法代码示例。如果您正苦于以下问题:Java HeaderStyle.BOTH属性的具体用法?Java HeaderStyle.BOTH怎么用?Java HeaderStyle.BOTH使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.jgoodies.looks.HeaderStyle的用法示例。


在下文中一共展示了HeaderStyle.BOTH属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: installSpecialBorder

/**
 * Installs a special border, if either a look-dependent {@code BorderStyle}
 * or a look-independent {@code HeaderStyle} has been specified.
 * A look specific {@code BorderStyle} shadows a {@code HeaderStyle}.<p>
 *
 * We recommend to specify a {@code HeaderStyle}.
 */
public void installSpecialBorder() {
	String suffix;
	BorderStyle borderStyle = BorderStyle.from(menuBar,
											PlasticLookAndFeel.BORDER_STYLE_KEY);
	if (borderStyle == BorderStyle.EMPTY) {
           suffix = "emptyBorder";
       } else if (borderStyle == BorderStyle.ETCHED) {
           suffix = "etchedBorder";
       } else if (borderStyle == BorderStyle.SEPARATOR) {
           suffix = "separatorBorder";
       } else {
		HeaderStyle headerStyle = HeaderStyle.from(menuBar);
		if (headerStyle == HeaderStyle.BOTH) {
               suffix = "headerBorder";
           } else if (headerStyle == HeaderStyle.SINGLE && is3D()) {
               suffix = "etchedBorder";
           } else {
               return;
           }
	}

	LookAndFeel.installBorder(menuBar, "MenuBar." + suffix);
}
 
开发者ID:javachen,项目名称:IBMDataMovementTool,代码行数:30,代码来源:PlasticMenuBarUI.java

示例2: installSpecialBorder

/**
 * Installs a special border, if either a look-dependent
 * {@code BorderStyle} or a look-independent
 * {@code HeaderStyle} has been specified.
 * A look specific {@code BorderStyle} shadows
 * a {@code HeaderStyle}.<p>
 *
 * Specifying a {@code HeaderStyle} is recommend.
 */
private void installSpecialBorder() {
    String suffix;
    BorderStyle borderStyle =
        BorderStyle.from(toolBar, PlasticLookAndFeel.BORDER_STYLE_KEY);
    if (borderStyle == BorderStyle.EMPTY) {
        suffix = "emptyBorder";
    } else if (borderStyle == BorderStyle.ETCHED) {
        suffix = "etchedBorder";
    } else if (borderStyle == BorderStyle.SEPARATOR) {
        suffix = "separatorBorder";
    } else {
        HeaderStyle headerStyle = HeaderStyle.from(toolBar);
        if (headerStyle == HeaderStyle.BOTH) {
            suffix = "headerBorder";
        } else if (headerStyle == HeaderStyle.SINGLE && is3D()) {
            suffix = "etchedBorder";
        } else {
            suffix = "border";
        }
    }
    LookAndFeel.installBorder(toolBar, PROPERTY_PREFIX + suffix);
}
 
开发者ID:javachen,项目名称:IBMDataMovementTool,代码行数:31,代码来源:PlasticToolBarUI.java

示例3: installSpecialBorder

/**
 * Installs a special border, if either a look-dependent
 * {@code BorderStyle} or a look-independent
 * {@code HeaderStyle} has been specified.
 * A look specific BorderStyle shadows a HeaderStyle.<p>
 *
 * Specifying a HeaderStyle is recommend.
 */
private void installSpecialBorder() {
    String suffix;
    BorderStyle borderStyle =
        BorderStyle.from(toolBar, WindowsLookAndFeel.BORDER_STYLE_KEY);
    if (borderStyle == BorderStyle.EMPTY) {
        suffix = "emptyBorder";
    } else if (borderStyle == BorderStyle.SEPARATOR) {
        suffix = "separatorBorder";
    } else if (borderStyle == BorderStyle.ETCHED) {
        suffix = "etchedBorder";
    } else if (HeaderStyle.from(toolBar) == HeaderStyle.BOTH) {
        suffix = "headerBorder";
    } else {
        return;
    }
    LookAndFeel.installBorder(toolBar, "ToolBar." + suffix);
}
 
开发者ID:javachen,项目名称:IBMDataMovementTool,代码行数:25,代码来源:WindowsToolBarUI.java

示例4: installSpecialBorder

/**
 * Installs a special border, if either a look-dependent
 * {@code BorderStyle} or a look-independent {@code HeaderStyle}
 * has been specified. A look specific BorderStyle shadows
 * a HeaderStyle.<p>
 *
 * Specifying a HeaderStyle is recommend.
 */
private void installSpecialBorder() {
    String suffix;
    BorderStyle borderStyle = BorderStyle.from(toolBar,
            WindowsLookAndFeel.BORDER_STYLE_KEY);
    if (borderStyle == BorderStyle.EMPTY) {
        suffix = "emptyBorder";
    } else if (borderStyle == BorderStyle.SEPARATOR) {
        suffix = "separatorBorder";
    } else if (borderStyle == BorderStyle.ETCHED) {
        suffix = "etchedBorder";
    } else if (HeaderStyle.from(toolBar) == HeaderStyle.BOTH) {
        suffix = "headerBorder";
    } else {
        suffix = "border";
    }
    LookAndFeel.installBorder(toolBar, "ToolBar." + suffix);
}
 
开发者ID:javachen,项目名称:IBMDataMovementTool,代码行数:25,代码来源:WindowsXPToolBarUI.java

示例5: installSpecialBorder

/**
 * Installs a special border, if either a look-dependent
 * {@code BorderStyle} or a look-independent
 * {@code HeaderStyle} has been specified.
 * A look specific BorderStyle shadows
 * a HeaderStyle.<p>
 *
 * Specifying a HeaderStyle is recommend.
 */
private void installSpecialBorder() {
	String suffix;
	BorderStyle borderStyle = BorderStyle.from(menuBar,
											WindowsLookAndFeel.BORDER_STYLE_KEY);
	if (borderStyle == BorderStyle.EMPTY) {
           suffix = "emptyBorder";
       } else if (borderStyle == BorderStyle.ETCHED) {
           suffix = "etchedBorder";
       } else if (borderStyle == BorderStyle.SEPARATOR) {
           suffix = "separatorBorder";
       } else if (HeaderStyle.from(menuBar) == HeaderStyle.BOTH) {
           suffix = "headerBorder";
       } else {
           return;
       }

	LookAndFeel.installBorder(menuBar, "MenuBar." + suffix);
}
 
开发者ID:javachen,项目名称:IBMDataMovementTool,代码行数:27,代码来源:WindowsMenuBarUI.java


注:本文中的com.jgoodies.looks.HeaderStyle.BOTH属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。