Examples of Setting


Examples of bibliothek.gui.dock.frontend.Setting

     * @param includeWorkingAreas whether {@link Dockable}s that are managed by a working-area should be
     * included in the layout or not
     * @return the current perspective
     */
    public CPerspective getPerspective( boolean includeWorkingAreas ){
      Setting setting = control.getOwner().intern().getSetting( !includeWorkingAreas );
      return convert( (CSetting)setting, includeWorkingAreas );
    }
View Full Code Here

Examples of bibliothek.gui.dock.frontend.Setting

     * Gets the perspective which represents a layout that was stored using {@link CControl#save(String)}.
     * @param name the name of the stored layout
     * @return the perspective or <code>null</code> if <code>name</code> was not found
     */
    public CPerspective getPerspective( String name ){
      Setting setting = control.getOwner().intern().getSetting( name );
      if( setting == null ){
        return null;
      }
      return convert( (CSetting)setting, false );
    }
View Full Code Here

Examples of bibliothek.gui.dock.frontend.Setting

      if( destination == null ){
        throw new IllegalArgumentException( "destination is null" );
      }
     
      CDockFrontend frontend = control.getOwner().intern();
      Setting layout = frontend.getSetting( source );
      if( layout == null ){
        throw new IllegalArgumentException( "no perspective registered with name '" + source + "'" );
      }
      frontend.setSetting( destination, layout );
      frontend.delete( source );
View Full Code Here

Examples of bm.ui.def.view.settings.Setting

            );
        }
        options = new Hashtable( count );
        for( int i = 0; i < count; i++ )
        {
            final Setting setting = (Setting) items.elementAt( i );
            boolean active = true;
            if( setting.getOnlyIf() != null )
            {
                active = ViewFactory.flags.contains( setting.getOnlyIf() );
            }
            else if( setting.getUnless() != null )
            {
                active = !ViewFactory.flags.contains( setting.getUnless() );
            }
            if( active )
            {
                final Option option = new Option();
                option.index = i;
                option.key = setting.getKey();
                option.defaultValue = setting.isDefaultValue();
                option.title = setting.getTitle();
                final String text = ResourceManager.getResource(
                        option.title + "." +
                        getSetting( option.key, option.defaultValue )
                );
                int index;
View Full Code Here

Examples of com.eviware.soapui.settings.Setting

  public List<Setting> getSettings()
  {
    ArrayList<Setting> settings = new ArrayList<Setting>();
    for( Field field : settingsClass.getFields() )
    {
      Setting annotation = field.getAnnotation( Setting.class );
      if( annotation != null )
      {
        settings.add( annotation );
      }
    }
View Full Code Here

Examples of com.eviware.soapui.settings.Setting

  {
    StringToStringMap result = new StringToStringMap();

    for( Field field : settingsClass.getFields() )
    {
      Setting annotation = field.getAnnotation( Setting.class );
      if( annotation != null )
      {
        try
        {
          result.put( annotation.name(),
              settings.getString( field.get( null ).toString(), annotation.defaultValue() ) );
        }
        catch( Exception e )
        {
          SoapUI.logError( e );
        }
View Full Code Here

Examples of com.eviware.soapui.settings.Setting

  public void storeValues( StringToStringMap values, Settings settings )
  {
    for( Field field : settingsClass.getFields() )
    {
      Setting annotation = field.getAnnotation( Setting.class );
      if( annotation != null )
      {
        try
        {
          settings.setString( field.get( null ).toString(), values.get( annotation.name() ) );
        }
        catch( IllegalArgumentException e )
        {
          SoapUI.logError( e );
        }
View Full Code Here

Examples of com.jpoweredcart.common.entity.setting.Setting

public class SettingRowMapper implements RowMapper<Setting>{

  @Override
  public Setting mapRow(ResultSet rs, int rowNum) throws SQLException {
   
    Setting setting = new Setting();
    setting.setId(rs.getInt("setting_id"));
    setting.setStoreId(rs.getInt("store_id"));
    setting.setGroup(rs.getString("group"));
    setting.setKey(rs.getString("key"));
    setting.setValue(rs.getString("value"));
    setting.setSerialized(rs.getBoolean("serialized"));
    return setting;
  }
View Full Code Here

Examples of com.rupertjones.globalcron.common.domain.Setting

    private Setting setting = null;

    @Before
    public void before() {
        setting = new Setting();
        setting.setValue("^(?=.*[A-Za-z])(?=.*\\d)(.{8,})$");
    }
View Full Code Here

Examples of com.xiaoleilu.hutool.Setting

   * ---------------------
   */
  synchronized public void initSingle() {
    if(setting == null) {
      try {
        setting = new Setting(MONGO_CONFIG_PATH, CharsetUtil.UTF_8, true);
      } catch (Exception e) {
        //在single模式下,可以没有配置文件。
      }
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.