本文整理匯總了Java中org.onosproject.ui.table.TableModel.setFormatter方法的典型用法代碼示例。如果您正苦於以下問題:Java TableModel.setFormatter方法的具體用法?Java TableModel.setFormatter怎麽用?Java TableModel.setFormatter使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.onosproject.ui.table.TableModel
的用法示例。
在下文中一共展示了TableModel.setFormatter方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createTableModel
import org.onosproject.ui.table.TableModel; //導入方法依賴的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.TableModel; //導入方法依賴的package包/類
@Override
protected TableModel createTableModel() {
TableModel tm = super.createTableModel();
tm.setFormatter(ONE, ConnectPointFormatter.INSTANCE);
tm.setFormatter(TWO, ConnectPointFormatter.INSTANCE);
tm.setFormatter(TYPE, EnumFormatter.INSTANCE);
return tm;
}
示例3: createTableModel
import org.onosproject.ui.table.TableModel; //導入方法依賴的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;
}
示例4: createTableModel
import org.onosproject.ui.table.TableModel; //導入方法依賴的package包/類
@Override
protected TableModel createTableModel() {
TableModel tm = super.createTableModel();
tm.setFormatter(APP_ID, AppIdFormatter.INSTANCE);
tm.setFormatter(RESOURCES, new ResourcesFormatter());
tm.setFormatter(DETAILS, new DetailsFormatter());
tm.setFormatter(STATE, EnumFormatter.INSTANCE);
return tm;
}
示例5: createTableModel
import org.onosproject.ui.table.TableModel; //導入方法依賴的package包/類
@Override
protected TableModel createTableModel() {
TableModel tm = super.createTableModel();
tm.setFormatter(PKT_RX, NumberFormatter.INTEGER);
tm.setFormatter(PKT_TX, NumberFormatter.INTEGER);
tm.setFormatter(BYTES_RX, NumberFormatter.INTEGER);
tm.setFormatter(BYTES_TX, NumberFormatter.INTEGER);
tm.setFormatter(PKT_RX_DRP, NumberFormatter.INTEGER);
tm.setFormatter(PKT_TX_DRP, NumberFormatter.INTEGER);
return tm;
}
示例6: createTableModel
import org.onosproject.ui.table.TableModel; //導入方法依賴的package包/類
@Override
protected TableModel createTableModel() {
TableModel tm = super.createTableModel();
//TODO add more formater class so that we can get a more readable table
tm.setFormatter(ONE, TunnelEndPointFormatter.INSTANCE);
tm.setFormatter(TWO, TunnelEndPointFormatter.INSTANCE);
tm.setFormatter(TYPE, EnumFormatter.INSTANCE);
return tm;
}
示例7: createTableModel
import org.onosproject.ui.table.TableModel; //導入方法依賴的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;
}
示例8: createTableModel
import org.onosproject.ui.table.TableModel; //導入方法依賴的package包/類
@Override
protected TableModel createTableModel() {
TableModel tm = super.createTableModel();
tm.setFormatter(ID, HexFormatter.INSTANCE);
tm.setFormatter(TYPE, EnumFormatter.INSTANCE);
tm.setFormatter(PACKETS, NumberFormatter.INTEGER);
tm.setFormatter(BYTES, NumberFormatter.INTEGER);
tm.setFormatter(BUCKETS, new BucketFormatter());
return tm;
}
示例9: createTableModel
import org.onosproject.ui.table.TableModel; //導入方法依賴的package包/類
@Override
protected TableModel createTableModel() {
TableModel tm = super.createTableModel();
tm.setFormatter(LOCATION, HostLocationFormatter.INSTANCE);
tm.setFormatter(IPS, new IpSetFormatter());
return tm;
}
示例10: createTableModel
import org.onosproject.ui.table.TableModel; //導入方法依賴的package包/類
@Override
protected TableModel createTableModel() {
// if required, override createTableModel() to set column formatters / comparators
TableModel tm = super.createTableModel();
tm.setFormatter(TIME_RAISED, new TimeFormatter());
return tm;
}
示例11: createTableModel
import org.onosproject.ui.table.TableModel; //導入方法依賴的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;
}
示例12: createTableModel
import org.onosproject.ui.table.TableModel; //導入方法依賴的package包/類
@Override
protected TableModel createTableModel() {
TableModel tm = super.createTableModel();
tm.setFormatter(AVG_MS, NumberFormatter.TO_5DP);
return tm;
}
示例13: createTableModel
import org.onosproject.ui.table.TableModel; //導入方法依賴的package包/類
@Override
protected TableModel createTableModel() {
TableModel tm = super.createTableModel();
tm.setFormatter(UPDATED, new TimeFormatter());
return tm;
}
示例14: createTableModel
import org.onosproject.ui.table.TableModel; //導入方法依賴的package包/類
@Override
protected TableModel createTableModel() {
TableModel tm = super.createTableModel();
tm.setFormatter(MEMBERS, new MembersFormatter());
return tm;
}
示例15: createTableModel
import org.onosproject.ui.table.TableModel; //導入方法依賴的package包/類
@Override
protected TableModel createTableModel() {
TableModel tm = super.createTableModel();
tm.setFormatter(TIME_RAISED, new TimeFormatter());
return tm;
}