@Override public Component getTableCellEditorComponent( JTable table, Object value, boolean isSelected, int row, int column) { editor.setValue(value); return editor.getCustomEditor(); } }
@Override public java.awt.Component getCustomEditor() { return ed.getCustomEditor(); }
/** * {@inheritDoc} */ @Override public Component getCustomEditor() { return delegate.getCustomEditor(); }
@Override public Component getCustomEditor() { return editor.getCustomEditor(); }
@Override public Component getCustomEditor() { return guiEditor.getCustomEditor(); }
public java.awt.Component getCustomEditor() { return pe.getCustomEditor(); }
@Override public JComponent getComponent() { if( textField!=null )return textField; Component cmpt =pe.getCustomEditor(); if( cmpt instanceof JComponent ){ return (JComponent)cmpt; }else{ JPanel p = new JPanel(new BorderLayout()); p.add( cmpt ); return p; } }
private Component getCustomEditor() { if (customEditor == null) { customEditor = getPropertyEditor().getCustomEditor(); } return customEditor; }
public void updateUI() { if (m_editors != null) { for (int index = 0; index < m_editors.length; index++) { PropertyEditor editor = m_editors[index]; if (editor != null) { Component comp = editor.getCustomEditor(); FormUtils.updateLookAndFeel(comp); } } } } }
public Component getCustomiser(DataThing dataThing) { PropertyEditor editor = PropertyEditorManager.findEditor( Scanner.class); if(editor != null) { editor.setValue(this); return editor.getCustomEditor(); } else { return null; } }
private Component getCustomEditor() { if (customEditor == null) { customEditor = getPropertyEditor().getCustomEditor(); } return customEditor; }
private Component getCustomEditor() { if (customEditor == null) { customEditor = getPropertyEditor().getCustomEditor(); } return customEditor; }
/** * Hook method just before the dialog is made visible. */ @Override protected void beforeShow() { super.beforeShow(); m_Current = m_Editor.getValue(); // only in case of GOEPanels can be determine whether OK or Cancel was // selected. if (m_Editor.getCustomEditor() instanceof GOEPanel) m_Result = CANCEL_OPTION; else m_Result = APPROVE_OPTION; }
/** * Hook method just before the dialog is made visible. */ @Override protected void beforeShow() { super.beforeShow(); m_Current = m_Editor.getValue(); // only in case of GOEPanels can be determine whether OK or Cancel was // selected. if (m_Editor.getCustomEditor() instanceof GOEPanel) m_Result = CANCEL_OPTION; else m_Result = APPROVE_OPTION; }
private Component getEditor(Object value) { editor.setValue(value); final Component cellEditor = editor.getCustomEditor(); // request focus later so the editor can be used to enter value as soon as // made visible Utility.invokeLater(new Runnable() { public void run() { cellEditor.requestFocus(); } }); return cellEditor; }
/** * For initializing the GUI. */ @Override protected void initGUI() { super.initGUI(); setDefaultCloseOperation(GenericObjectEditorDialog.HIDE_ON_CLOSE); getContentPane().setLayout(new BorderLayout()); getContentPane().add(m_Editor.getCustomEditor(), BorderLayout.CENTER); ((GOEPanel) m_Editor.getCustomEditor()).addOkListener(this); pack(); }
/** * For initializing the GUI. */ @Override protected void initGUI() { super.initGUI(); setDefaultCloseOperation(GenericObjectEditorDialog.HIDE_ON_CLOSE); getContentPane().setLayout(new BorderLayout()); getContentPane().add(m_Editor.getCustomEditor(), BorderLayout.CENTER); ((GOEPanel) m_Editor.getCustomEditor()).addOkListener(this); pack(); }
public void updateUI() { super.updateUI(); m_cache.updateUI(); if (m_editor != null) { java.awt.Component comp = m_editor.getCustomEditor(); FormUtils.updateLookAndFeel(comp); } m_font = null; }
protected void checkGetCustomEditor() { assertThat( editor.getCustomEditor(), is( nullValue() ) ); }
public static Object getCustomPropertyEditor(PropertyEditor editor, Class<?> componentClass) { if (editor instanceof GenericPropertyEditor) { GenericPropertyEditor genericEditor = (GenericPropertyEditor) editor; if (genericEditor.supportsCustomEditor(componentClass)) { return genericEditor.getCustomEditor(componentClass); } } if (componentClass != java.awt.Component.class) { return null; } return editor.supportsCustomEditor() ? editor.getCustomEditor() : null; }