本文整理了Java中javax.swing.JPanel.getClientProperty()
方法的一些代码示例,展示了JPanel.getClientProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JPanel.getClientProperty()
方法的具体详情如下:
包路径:javax.swing.JPanel
类名称:JPanel
方法名:getClientProperty
暂无
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
public Object getClientProperty(Object key)
{
return _contentPane.getClientProperty(key);
}
代码示例来源:origin: realXuJiang/bigtable-sql
public Object getClientProperty(Object key)
{
return _contentPane.getClientProperty(key);
}
代码示例来源:origin: stackoverflow.com
JPanel jPanel = new JPanel();
JLabel label=new JLabel("Hi");
jPanel.add(label);
jPanel.putClientProperty("hiLabel", label);
System.out.println(jPanel.getClientProperty("hiLabel").getClass().getName());
代码示例来源:origin: net.sf.cuf/cuf-swing
public void addToParent(Container pParent)
{
JPanel panel = (JPanel)pParent;
DefaultFormBuilder builder= (DefaultFormBuilder)panel.getClientProperty(SwingXMLBuilder.FORMBUILDER_PROPERTY);
builder.nextLine();
}
}
代码示例来源:origin: net.sf.cuf/cuf-swing
public void addToParent(Container pParent)
{
JPanel panel = (JPanel)pParent;
DefaultFormBuilder builder= (DefaultFormBuilder)panel.getClientProperty(SwingXMLBuilder.FORMBUILDER_PROPERTY);
builder.appendSeparator(mText);
}
}
代码示例来源:origin: net.sf.cuf/cuf-swing
public void addToParent(Container pParent)
{
JPanel panel = (JPanel)pParent;
DefaultFormBuilder builder= (DefaultFormBuilder)panel.getClientProperty(SwingXMLBuilder.FORMBUILDER_PROPERTY);
builder.appendRow(mRowSpec);
}
}
代码示例来源:origin: net.sf.doolin/doolin-gui
/**
* Gets the {@link DockModel} that is associated to a window using its
* client property {@link #CLIENT_PROPERTY_DOCK_MODEL}.
*
* @param window
* Window
* @return {@link DockModel} instance
*/
protected DockModel getDockModel(GUIWindow<B> window) {
DockModel dockModel = (DockModel) window.getWindowPanel()
.getClientProperty(CLIENT_PROPERTY_DOCK_MODEL);
return dockModel;
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-remotefs-versioning-api
public HookPanel(VCSCommitPanel master, Collection<? extends VCSHook> hooks, VCSHookContext hookContext) {
super(master, (hooks.size() == 1)
? hooks.iterator().next().getDisplayName()
: getMessage("LBL_Advanced"), //NOI18N
DEFAULT_DISPLAY_HOOKS);
this.hooks = hooks;
this.hookContext = hookContext;
// need this to happen in addNotify() - depends on how
// repositoryComboSupport in hook.createComponents works for bugzilla|jira
if (hooks.size() == 1) {
JPanel p = hooks.iterator().next().createComponent(hookContext);
if (Boolean.TRUE.equals(p.getClientProperty("prop.requestOpened"))) { //NOI18N - some hook panels may want to be opened (hg queue hook with previously configured setts)
super.displaySection();
}
sectionPanel.add(p);
} else {
JTabbedPane hooksTabbedPane = new JTabbedPane();
for (VCSHook hook : hooks) {
hooksTabbedPane.add(hook.createComponent(hookContext), hook.getDisplayName().replaceAll("\\&", "")); //NOI18N
}
sectionPanel.add(hooksTabbedPane);
}
}
代码示例来源:origin: stackoverflow.com
Object obj = panel.getClientProperty(soldItem);
if (obj instanceof JLabel) {
((JLabel) obj).setForeground(Color.RED);
代码示例来源:origin: org.ihtsdo/wb-api
&& detailsSheet.getClientProperty(DetailSheetClientProperties.COMPONENT_FOR_FOCUS) != null) {
JComponent componentToFocus =
(JComponent) detailsSheet.getClientProperty(DetailSheetClientProperties.COMPONENT_FOR_FOCUS);
componentToFocus.requestFocusInWindow();
} else {
代码示例来源:origin: net.sf.cuf/cuf-swing
builder= (DefaultFormBuilder)panel.getClientProperty(SwingXMLBuilder.FORMBUILDER_PROPERTY);
内容来源于网络,如有侵权,请联系作者删除!