本文整理汇总了Java中org.onosproject.ui.table.cell.HexLongFormatter类的典型用法代码示例。如果您正苦于以下问题:Java HexLongFormatter类的具体用法?Java HexLongFormatter怎么用?Java HexLongFormatter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
HexLongFormatter类属于org.onosproject.ui.table.cell包,在下文中一共展示了HexLongFormatter类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createTableModel
import org.onosproject.ui.table.cell.HexLongFormatter; //导入依赖的package包/类
@Override
protected TableModel createTableModel() {
TableModel tm = super.createTableModel();
tm.setFormatter(ID, HexLongFormatter.INSTANCE);
tm.setFormatter(STATE, EnumFormatter.INSTANCE);
tm.setFormatter(BYTES, NumberFormatter.INTEGER);
tm.setFormatter(PACKETS, NumberFormatter.INTEGER);
tm.setFormatter(DURATION, NumberFormatter.INTEGER);
tm.setFormatter(SELECTOR_C, new SelectorShortFormatter());
tm.setFormatter(SELECTOR, new SelectorFormatter());
tm.setFormatter(TREATMENT_C, new TreatmentShortFormatter());
tm.setFormatter(TREATMENT, new TreatmentFormatter());
tm.setFormatter(TABLE_NAME, DefaultCellFormatter.INSTANCE);
return tm;
}
示例2: createTableModel
import org.onosproject.ui.table.cell.HexLongFormatter; //导入依赖的package包/类
@Override
protected TableModel createTableModel() {
TableModel tm = super.createTableModel();
tm.setFormatter(ID, HexLongFormatter.INSTANCE);
tm.setFormatter(GROUP_ID, HexFormatter.INSTANCE);
tm.setFormatter(STATE, EnumFormatter.INSTANCE);
tm.setFormatter(PACKETS, NumberFormatter.INTEGER);
tm.setFormatter(BYTES, NumberFormatter.INTEGER);
tm.setFormatter(SELECTOR, new SelectorFormatter());
tm.setFormatter(TREATMENT, new TreatmentFormatter());
return tm;
}
示例3: createTableModel
import org.onosproject.ui.table.cell.HexLongFormatter; //导入依赖的package包/类
@Override
protected TableModel createTableModel() {
TableModel tm = super.createTableModel();
tm.setFormatter(ID, HexLongFormatter.INSTANCE);
tm.setFormatter(PACKETS, NumberFormatter.INTEGER);
tm.setFormatter(BYTES, NumberFormatter.INTEGER);
tm.setFormatter(BANDS, new BandFormatter());
return tm;
}
示例4: createTableModel
import org.onosproject.ui.table.cell.HexLongFormatter; //导入依赖的package包/类
@Override
protected TableModel createTableModel() {
TableModel tm = super.createTableModel();
tm.setFormatter(ID, HexLongFormatter.INSTANCE);
tm.setFormatter(TYPE, EnumFormatter.INSTANCE);
tm.setFormatter(STATE, EnumFormatter.INSTANCE);
tm.setFormatter(MAPPING_KEY, new MappingKeyFormatter());
return tm;
}
示例5: createTableModel
import org.onosproject.ui.table.cell.HexLongFormatter; //导入依赖的package包/类
@Override
protected TableModel createTableModel() {
TableModel tm = super.createTableModel();
tm.setFormatter(FLOW_ID, HexLongFormatter.INSTANCE);
return tm;
}