extension point for custom columns [message #1004015] |
Tue, 22 January 2013 12:34 |
Thomas Mangold Messages: 2 Registered: January 2013 Location: Basel |
Junior Member |
|
|
Deriving a custom FormField is well documented. It's found via the plugin configuration as described in the tutorial:
<formField
scope="global"
active="true"
modelClass="org.eclipse.scout.rt.client.ui.form.fields.decimalfield.IDecimalField"
name="decimalfield">
<uiClass
class="ch.sbb.cis.scout.rt.ui.swt.form.fields.decimalfield.CisSwtDecimalField">
</uiClass>
</formField>
But for a custom table or column this configuration via the Interface does not work
<formField
scope="global"
active="true"
modelClass="org.eclipse.scout.rt.ui.basic.table.ICisTable"
name="table">
<uiClass
class="ch.sbb.cis.scout.rt.ui.swt.basic.table.ICisSwtScoutTable">
</uiClass>
</formField>
Which tag (if possible) is necessary in the plugin configuration?
In my opinion, is there a missing extension point for org.eclipse.scout.rt.ui.basic or org.eclipse.scout.rt.ui.basic.table
_\|/_ Thomas _\|/_
/|\ Mangold /|\
[Updated on: Tue, 22 January 2013 12:34] Report message to a moderator
|
|
|
Re: extension point for custom columns [message #1004218 is a reply to message #1004015] |
Tue, 22 January 2013 20:25 |
|
Thomas Mangold wrote on Tue, 22 January 2013 07:34In my opinion, is there a missing extension point for org.eclipse.scout.rt.ui.basic or org.eclipse.scout.rt.ui.basic.table
You cannot add a custom UI for org.eclipse.scout.rt.client.ui.basic.table.ITable because it is not a form field (i.e. extends org.eclipse.scout.rt.client.ui.form.fields.IFormField). What you can do, is to provide a custom UI representation for org.eclipse.scout.rt.client.ui.form.fields.tablefield.ITableField. ITable is "just" a model for the table, the field itself is subclassed from ITableField (with an ITable as an inner class).
If you look for example at SwingScoutTableField (the mapping class from the Scout model to the Swing widgets) you can see how the ITable is mapped to a SwingScoutTable in setTableFromScout(). You could provide your own CustomSwingScoutTableField class that creates a custom CustomSwingScoutTable.
But beware, because a table is a rather complex widget, the UI implementation is not that simple, too.
Beat
|
|
|
|
Powered by
FUDForum. Page generated in 0.03693 seconds