本文整理了Java中javax.swing.JTable.getClientProperty()
方法的一些代码示例,展示了JTable.getClientProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTable.getClientProperty()
方法的具体详情如下:
包路径:javax.swing.JTable
类名称:JTable
方法名:getClientProperty
暂无
代码示例来源:origin: com.haulmont.thirdparty/glazedlists
public RestoreStateRunnable(JTable table) {
this.table = table;
final ListSelectionModel selectionModel = table.getSelectionModel();
eventSelectionModel = selectionModel instanceof AdvancedListSelectionModel ? (AdvancedListSelectionModel) selectionModel : null;
eventSelectionModelEnabled = eventSelectionModel != null && eventSelectionModel.getEnabled();
autoStartsEdit = (Boolean) table.getClientProperty("JTable.autoStartsEdit");
}
代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java15
public RestoreStateRunnable(JTable table) {
this.table = table;
final ListSelectionModel selectionModel = table.getSelectionModel();
eventSelectionModel = selectionModel instanceof AdvancedListSelectionModel ? (AdvancedListSelectionModel) selectionModel : null;
eventSelectionModelEnabled = eventSelectionModel != null && eventSelectionModel.getEnabled();
autoStartsEdit = (Boolean) table.getClientProperty("JTable.autoStartsEdit");
}
代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java16
public RestoreStateRunnable(JTable table) {
this.table = table;
final ListSelectionModel selectionModel = table.getSelectionModel();
eventSelectionModel = selectionModel instanceof AdvancedListSelectionModel ? (AdvancedListSelectionModel) selectionModel : null;
eventSelectionModelEnabled = eventSelectionModel != null && eventSelectionModel.getEnabled();
autoStartsEdit = (Boolean) table.getClientProperty("JTable.autoStartsEdit");
}
代码示例来源:origin: org.swinglabs.swingx/swingx-all
private boolean isStartingCellEdit(KeyEvent e) {
if (isDispatching) {
return false;
}
JTable table = (JTable) SwingUtilities.getAncestorOfClass(JTable.class, this);
boolean isOwned = table != null
&& !Boolean.FALSE.equals(table.getClientProperty("JTable.autoStartsEdit"));
return isOwned && e.getComponent() == table;
}
代码示例来源:origin: org.swinglabs.swingx/swingx-core
private boolean isStartingCellEdit(KeyEvent e) {
if (isDispatching) {
return false;
}
JTable table = (JTable) SwingUtilities.getAncestorOfClass(JTable.class, this);
boolean isOwned = table != null
&& !Boolean.FALSE.equals(table.getClientProperty("JTable.autoStartsEdit"));
return isOwned && e.getComponent() == table;
}
代码示例来源:origin: stackoverflow.com
public class MyRenderer extends JLable, implements TableCellRenderer{
@Override
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column) {
// Pull hashMapContainer from the per-table client properties
MyHashContainer hashMapcontainer = (MyHashContainer)table.getClientProperty("MyHashContainer");
// Set defaults as above
if (!isRowSelected(table, row) ) {
// Same as above
}
return c;
}
// Private method to check for row selection
private boolean isRowSelected(JTable t, int row) {
int[] selectedRows = table.getSelectedRows();
for (int i = 0; i < selectedRows.length; i++) {
if (selectedRows[i] == row) {
return true;
}
}
return false;
}
}
代码示例来源:origin: com.haulmont.thirdparty/swingx-core
private boolean isStartingCellEdit(KeyEvent e) {
if (isDispatching) {
return false;
}
JTable table = (JTable) SwingUtilities.getAncestorOfClass(JTable.class, this);
boolean isOwned = table != null
&& !Boolean.FALSE.equals(table.getClientProperty("JTable.autoStartsEdit"));
return isOwned && e.getComponent() == table;
}
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
private boolean isStartingCellEdit(KeyEvent e) {
if (isDispatching) {
return false;
}
JTable table = (JTable) SwingUtilities.getAncestorOfClass(JTable.class, this);
boolean isOwned = table != null
&& !Boolean.FALSE.equals(table.getClientProperty("JTable.autoStartsEdit"));
return isOwned && e.getComponent() == table;
}
代码示例来源:origin: stackoverflow.com
JPopupMenu.class, (Component) e.getSource());
JTable invoker = (JTable) parent.getInvoker();
Point p = (Point) invoker.getClientProperty("popupTriggerLocation");
String output = p != null ? "row/col: "
+ invoker.rowAtPoint(p) + "/" + invoker.columnAtPoint(p) : null;
代码示例来源:origin: stackoverflow.com
Point p = (Point) table.getClientProperty(popupLocation);
if (p != null) { // popup triggered by mouse
int row = table.rowAtPoint(p);
代码示例来源:origin: com.jtattoo/JTattoo
if (table.getClientProperty("TableHeader.font") != null) {
setFont((Font)table.getClientProperty("TableHeader.font"));
} else {
setFont(UIManager.getFont("TableHeader.font"));
代码示例来源:origin: com.github.insubstantial/substance
.getComponentFontSize(table));
drawLeadingVerticalLine = (Boolean) table.getClientProperty(SubstanceLookAndFeel.TABLE_LEADING_VERTICAL_LINE);
drawTrailingVerticalLine = (Boolean) table.getClientProperty(SubstanceLookAndFeel.TABLE_TRAILING_VERTICAL_LINE);
代码示例来源:origin: com.github.insubstantial/substance
Object highlightProperty = table.getClientProperty("substancelaf.highlightCells");
hasHighlights = (highlightProperty instanceof Boolean) ? (Boolean)highlightProperty && hasHighlights : hasHighlights;
代码示例来源:origin: org.netbeans.api/org-openide-explorer
FocusedPropertyPanel propPanel = getRenderer (property, n);
propPanel.setFocused(hasFocus);
Object computeTooltip = table.getClientProperty("ComputingTooltip");
if (Boolean.TRUE.equals(computeTooltip)) {
String toolT = null;
PropertyEditor propEd = property.getPropertyEditor();
Object propertyToolTipShortDescription = table.getClientProperty("PropertyToolTipShortDescription");
if (Boolean.TRUE.equals(propertyToolTipShortDescription) && property.getShortDescription() != null) {
toolT = property.getShortDescription();
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-dlight-visualizers
propPanel = getRenderer(property, n, hasFocus);
Object computeTooltip = table.getClientProperty("ComputingTooltip"); // NOI18N
if (Boolean.TRUE.equals(computeTooltip)) {
String toolT = null;
内容来源于网络,如有侵权,请联系作者删除!