org.ujorm.wicket.component.dialog.domestic
Class OfferModel<U extends Ujo & Serializable>

java.lang.Object
  extended by org.ujorm.wicket.component.dialog.domestic.OfferModel<U>
All Implemented Interfaces:
Serializable

public class OfferModel<U extends Ujo & Serializable>
extends Object
implements Serializable

UjoFieldModel

Author:
Pavel Ponec
See Also:
Serialized Form

Constructor Summary
OfferModel(Class<U> type)
          All item
OfferModel(org.ujorm.criterion.Criterion<U> filter)
          Filtering
 
Method Summary
protected  void addTableColumns(AbstractDataProvider provider)
          Add table columns
<S> org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable<U,S>
createDataTable()
          Create Date Table
 KeyColumn<U,Object> createSelectColumn(String action)
          Create new instance of an KeyColumn
protected  KeyList<?> findKeyByName(String keyName, KeyList<U> fullKeys)
          FindKey by name with ignore case
 Closeable<U> getClosable()
          Closable object
<V> KeyList<U>
getColumns()
          Table columns
 Dimension getDimension()
          Set dimension of Window
<D extends Ujo>
Key<D,U>
getDisplay()
          Display column of the UjoField
 org.ujorm.criterion.Criterion<U> getFilter()
          Returns the original filter
 org.apache.wicket.model.IModel<org.ujorm.criterion.Criterion<U>> getFilterModel()
          Returns filter model
<V> KeyList<U>
getFinders()
          Get Finders for Toolbar where String key type is preferred in auto builder mode
protected  void getFinders4Orm(List<Key> result)
          Add finders to the ressult for ORM domain
 org.apache.wicket.model.IModel<org.ujorm.criterion.Criterion<U>> getHighliting()
          Returns highliting with a non-null model
<V> Key<U,V>
getId()
          Display column of the UjoField
protected  MetaTable getMetaTable()
          Find a meta-model for a ORM doman class
protected  OrmHandler getOrmHandler()
          Returns ORM handelr
 AbstractDataProvider getProvider()
          Data Provider
 int getRowCount()
          Row count
 org.apache.wicket.model.IModel<String> getTitle()
          Dialog title
 Class<U> getType()
          Return a base class
 boolean isEnableToolbar()
          Enable finder
protected  boolean isOrm()
          Is the Domain type an ORM class ?
 void setClosable(Closeable<U> closable)
          Closable object
 void setColumns(KeyList<U> columns)
          Table columns
 void setDimension(int width, int height)
          Set dimension of Window
<D extends Ujo>
void
setDisplay(Key<? super D,U> display)
          Display column of the UjoField
 void setEnableToolbar(boolean enableToolbar)
          Enable finder
 void setFinders(KeyList<U> finders)
           
 void setHighliting(org.ujorm.criterion.Criterion<U> highliting)
          Returns highliting
<D extends Ujo>
void
setId(Key<? super D,U> id)
          Display column of the UjoField
 void setProvider(AbstractDataProvider provider)
          Data Provider
 void setRowCount(int rowCount)
          Row count
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfferModel

public OfferModel(Class<U> type)
All item


OfferModel

public OfferModel(org.ujorm.criterion.Criterion<U> filter)
Filtering

Method Detail

getFilter

@Nonnull
public org.ujorm.criterion.Criterion<U> getFilter()
Returns the original filter


getFilterModel

@Nonnull
public org.apache.wicket.model.IModel<org.ujorm.criterion.Criterion<U>> getFilterModel()
Returns filter model


setHighliting

@Nullable
public void setHighliting(@Nullable
                                   org.ujorm.criterion.Criterion<U> highliting)
Returns highliting


getHighliting

@Nonnull
public org.apache.wicket.model.IModel<org.ujorm.criterion.Criterion<U>> getHighliting()
Returns highliting with a non-null model


getType

@Nonnull
public Class<U> getType()
Return a base class


getTitle

@Nonnull
public org.apache.wicket.model.IModel<String> getTitle()
Dialog title


setDimension

public void setDimension(int width,
                         int height)
Set dimension of Window


getDimension

@Nonnull
public Dimension getDimension()
Set dimension of Window


getRowCount

public int getRowCount()
Row count


setRowCount

public void setRowCount(int rowCount)
Row count


getColumns

public <V> KeyList<U> getColumns()
Table columns


setColumns

public void setColumns(KeyList<U> columns)
Table columns


setFinders

public void setFinders(KeyList<U> finders)

getFinders

public <V> KeyList<U> getFinders()
Get Finders for Toolbar where String key type is preferred in auto builder mode


getFinders4Orm

protected void getFinders4Orm(List<Key> result)
                       throws IllegalStateException
Add finders to the ressult for ORM domain

Throws:
IllegalStateException

getProvider

public AbstractDataProvider getProvider()
Data Provider

Returns:

addTableColumns

protected void addTableColumns(AbstractDataProvider provider)
Add table columns


createSelectColumn

public KeyColumn<U,Object> createSelectColumn(String action)
Create new instance of an KeyColumn


isOrm

protected boolean isOrm()
Is the Domain type an ORM class ?


createDataTable

public <S> org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable<U,S> createDataTable()
Create Date Table


setProvider

public void setProvider(AbstractDataProvider provider)
Data Provider


getDisplay

@Nullable
public <D extends Ujo> Key<D,U> getDisplay()
Display column of the UjoField


setDisplay

public <D extends Ujo> void setDisplay(@Nullable
                                       Key<? super D,U> display)
Display column of the UjoField


getId

@Nonnull
public <V> Key<U,V> getId()
Display column of the UjoField


getMetaTable

protected MetaTable getMetaTable()
                          throws IllegalStateException
Find a meta-model for a ORM doman class

Throws:
IllegalStateException

findKeyByName

protected KeyList<?> findKeyByName(String keyName,
                                   KeyList<U> fullKeys)
FindKey by name with ignore case

Parameters:
keyName - Key name in UPPER CASE
fullKeys - all direct keys
Returns:
Primary Key in a KeyList format

setId

public <D extends Ujo> void setId(@Nullable
                                  Key<? super D,U> id)
Display column of the UjoField


getOrmHandler

protected OrmHandler getOrmHandler()
Returns ORM handelr


getClosable

public Closeable<U> getClosable()
Closable object


setClosable

public void setClosable(@Nonnull
                        Closeable<U> closable)
Closable object


isEnableToolbar

public boolean isEnableToolbar()
Enable finder


setEnableToolbar

public void setEnableToolbar(boolean enableToolbar)
Enable finder



Copyright © 2015. All Rights Reserved.