本文整理了Java中javax.swing.table.AbstractTableModel.getColumnName()
方法的一些代码示例,展示了AbstractTableModel.getColumnName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractTableModel.getColumnName()
方法的具体详情如下:
包路径:javax.swing.table.AbstractTableModel
类名称:AbstractTableModel
方法名:getColumnName
暂无
代码示例来源:origin: chewiebug/GCViewer
/**
* @see javax.swing.table.AbstractTableModel#getColumnName(int)
*/
@Override
public String getColumnName(int column) {
String name = null;
if (column < columnNames.size() && (column >= 0)) {
name = columnNames.get(column);
}
return (name == null) ? super.getColumnName(column) : name;
}
代码示例来源:origin: org.geotools/gt2-widgets-swing
/**
* Returns the name for the specified column. The default implementation
* returns the name of the corresponding axis in the table CRS.
*/
public String getColumnName(final int columnIndex){
if (columnIndex>=0 && columnIndex<columnNames.length) {
return columnNames[columnIndex];
} else {
return super.getColumnName(columnIndex);
}
}
代码示例来源:origin: antlr/antlrworks
public String getColumnName(int column) {
switch(column) {
case DBStackPanel.INFO_COLUMN_COUNT: return "#";
case DBStackPanel.INFO_COLUMN_RULE: return "Rule";
}
return super.getColumnName(column);
}
代码示例来源:origin: antlr/antlrworks
public String getColumnName(int column) {
switch(column) {
case INFO_COLUMN_COUNT: return "#";
case INFO_COLUMN_EVENT: return "Event";
case INFO_COLUMN_SUBRULE: return "Subrule";
case INFO_COLUMN_DECISION: return "Decision";
case INFO_COLUMN_MARK: return "Mark";
case INFO_COLUMN_BACKTRACK: return "Backtrack";
}
return super.getColumnName(column);
}
代码示例来源:origin: com.metsci.glimpse/glimpse-wizard
@Override
public String getColumnName( int column )
{
switch ( column )
{
case 0:
return "Description";
case 1:
return "Page";
default:
return super.getColumnName( column );
}
}
代码示例来源:origin: SonarSource/sonarlint-intellij
@Override
public String getColumnName(int column) {
switch (column) {
case 0:
return "Property Name";
case 1:
return "Value";
default:
return super.getColumnName(column);
}
}
代码示例来源:origin: nu.zoom/eon2
public String getColumnName(int column) {
if ((column >= 0) && (column < headernames.length)) {
return headernames[column];
} else {
return super.getColumnName(column);
}
}
代码示例来源:origin: AlexFalappa/nb-springboot
@Override
public String getColumnName(int columnIndex) {
switch (columnIndex) {
case 0:
return "En.";
case 1:
return "Name";
case 2:
return "Value";
default:
return super.getColumnName(columnIndex);
}
}
代码示例来源:origin: com.mgmtp.gcviewer/gcviewer
/**
* @see javax.swing.table.AbstractTableModel#getColumnName(int)
*/
@Override
public String getColumnName(int column) {
String name = null;
if (column < columnNames.size() && (column >= 0)) {
name = columnNames.get(column);
}
return (name == null) ? super.getColumnName(column) : name;
}
代码示例来源:origin: org.geotools/gt2-widgets-swing
/**
* Returns the column name. The names are the pixel column number, starting at
* the {@linkplain RenderedImage#getMinX min x} value.
*/
public String getColumnName(final int column) {
if (columnNames == null) {
if (image == null) {
return super.getColumnName(column);
}
columnNames = new String[image.getWidth()];
}
String candidate = columnNames[column];
if (candidate == null) {
columnNames[column] = candidate = titleFormat.format(minX + column);
}
return candidate;
}
代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2-experimental
/**
* Returns the column name.
*
* @return a name for this column using the string value of the
* appropriate member in <code>columnNames</code>. If
* <code>columnNames</code> does not have an entry for this index
* then the default name provided by the superclass is returned
*/
public String getColumnName(int column)
{
Object columnName = null;
if (column < columnNames.size())
{
columnName = columnNames.get( column );
}
return (columnName == null) ? super.getColumnName( column ) : columnName.toString();
}
代码示例来源:origin: ata4/bspsrc
/**
* Returns the column name.
*
* @return a name for this column using the string value of the appropriate
* member in
* <code>columnNames</code>. If
* <code>columnNames</code> does not have an entry for this index then the
* default name provided by the superclass is returned
*/
@Override
public String getColumnName(int column) {
Object columnName = null;
if (column < columnNames.size()) {
columnName = columnNames.get(column);
}
return (columnName == null) ? super.getColumnName(column) : columnName.toString();
}
代码示例来源:origin: com.jalalkiswani/jk-util
/**
* Returns the column name.
*
* @param column
* the column
* @return a name for this column using the string value of the appropriate
* member in <code>columnIdentifiers</code>. If
* <code>columnIdentifiers</code> does not have an entry for this
* index, returns the default name provided by the superclass.
*/
@Override
public String getColumnName(final int column) {
Object id = null;
// This test is to cover the case when
// getColumnCount has been subclassed by mistake ...
if (column < this.columnIdentifiers.size() && column >= 0) {
id = this.columnIdentifiers.elementAt(column);
}
return id == null ? super.getColumnName(column) : id.toString();
}
代码示例来源:origin: org.fudaa.framework.ebli/ebli-2d
public String getColumnName(final int _column) {
if (_column == 0) {
return CtuluLibString.ESPACE;
}
if (_column == 1) {
return "X";
}
if (_column == 2) {
return "Y";
}
final int idxFeature = _column - 3;
if (atomicAttr_ != null) {
return atomicAttr_[idxFeature].getName();
}
return super.getColumnName(_column);
}
代码示例来源:origin: org.softsmithy.lib/softsmithy-lib-swing
/**
* {@inheritDoc }
*/
@Override
public String getColumnName(int column) {
String columnName = "";
try {
switch (column) {
case 0:
columnName = columnNamesRB.getString("property");
break;
case 1:
columnName = columnNamesRB.getString("value");
break;
default:
columnName = super.getColumnName(column); // should not happen
}
} catch (RuntimeException ex) {
LOG.error(ex.getMessage(), ex);
}
return columnName;
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns the column name.
*
* @param column the column index.
*
* @return The column name.
*/
public String getColumnName(int column) {
if (this.model == null) {
return super.getColumnName(column);
}
if (column < 1) {
return "X Value";
}
else {
return this.model.getSeriesKey(column - 1).toString();
}
}
代码示例来源:origin: jfree/jfreechart
/**
* Returns the column name.
*
* @param column the column index.
*
* @return The column name.
*/
@Override
public String getColumnName(int column) {
if (this.model == null) {
return super.getColumnName(column);
}
if (column < 1) {
return "X Value";
}
else {
return this.model.getSeriesKey(column - 1).toString();
}
}
代码示例来源:origin: net.sf.jga/jga
public String getColumnName(int col) {
GenericTableColumn<T,?> column = getGenericColumn(col);
Object name = column.getHeaderValue();
return (name != null) ? name.toString() : super.getColumnName(col);
}
代码示例来源:origin: freeplane/freeplane
@Override
public String getColumnName(int column) {
switch(column){
case 0: return TextUtils.getText("active");
case 1: return TextUtils.getText("condition");
case 2: return TextUtils.getText("style");
case 3: return TextUtils.getText("stop_processing");
}
return super.getColumnName(column);
}
代码示例来源:origin: com.metsci.glimpse/glimpse-wizard
@Override
public Object getValueAt( int rowIndex, int columnIndex )
{
WizardError error = getError( rowIndex );
switch ( columnIndex )
{
case 0:
return error;
case 1:
Object pageId = error.getPageId( );
WizardPage<?> page = controller.getPageModel( ).getPageById( pageId );
return page;
default:
return super.getColumnName( columnIndex );
}
}
}
内容来源于网络,如有侵权,请联系作者删除!