Package java.beans

Examples of java.beans.PropertyDescriptor


  {
    try
    {
      PropertyDescriptor[] result =
        new PropertyDescriptor[] {
            new PropertyDescriptor(IPropNames.AUTO_COMMIT, SessionProperties.class, "getAutoCommit",
              "setAutoCommit"),
            new PropertyDescriptor(IPropNames.COMMIT_ON_CLOSING_CONNECTION, SessionProperties.class,
              "getCommitOnClosingConnection", "setCommitOnClosingConnection"),
            new PropertyDescriptor(IPropNames.CONTENTS_LIMIT_ROWS, SessionProperties.class,
              "getContentsLimitRows", "setContentsLimitRows"),
            new PropertyDescriptor(IPropNames.CONTENTS_NBR_ROWS_TO_SHOW, SessionProperties.class,
              "getContentsNbrRowsToShow", "setContentsNbrRowsToShow"),
            new PropertyDescriptor(IPropNames.FONT_INFO, SessionProperties.class, "getFontInfo",
              "setFontInfo"),
            new PropertyDescriptor(IPropNames.META_DATA_OUTPUT_CLASS_NAME, SessionProperties.class,
              "getMetaDataOutputClassName", "setMetaDataOutputClassName"),
            new PropertyDescriptor(IPropNames.SHOW_ROW_COUNT, SessionProperties.class,
              "getShowRowCount", "setShowRowCount"),
            new PropertyDescriptor(IPropNames.SHOW_TOOL_BAR, SessionProperties.class, "getShowToolBar",
              "setShowToolBar"),
            new PropertyDescriptor(IPropNames.SQL_LIMIT_ROWS, SessionProperties.class,
              "getSQLLimitRows", "setSQLLimitRows"),
            new PropertyDescriptor(IPropNames.SQL_NBR_ROWS_TO_SHOW, SessionProperties.class,
              "getSQLNbrRowsToShow", "setSQLNbrRowsToShow"),
            new PropertyDescriptor(IPropNames.SQL_STATEMENT_SEPARATOR_STRING, SessionProperties.class,
              "getSQLStatementSeparator", "setSQLStatementSeparator"),
            new PropertyDescriptor(IPropNames.SQL_RESULTS_OUTPUT_CLASS_NAME, SessionProperties.class,
              "getSQLResultsOutputClassName", "setSQLResultsOutputClassName"),
            new PropertyDescriptor(IPropNames.SQL_START_OF_LINE_COMMENT, SessionProperties.class,
              "getStartOfLineComment", "setStartOfLineComment"),
            new PropertyDescriptor(IPropNames.REMOVE_MULTI_LINE_COMMENT, SessionProperties.class,
              "getRemoveMultiLineComment", "setRemoveMultiLineComment"),
            new PropertyDescriptor(IPropNames.LIMIT_SQL_ENTRY_HISTORY_SIZE, SessionProperties.class,
              "getLimitSQLEntryHistorySize", "setLimitSQLEntryHistorySize"),
            new PropertyDescriptor(IPropNames.SQL_ENTRY_HISTORY_SIZE, SessionProperties.class,
              "getSQLEntryHistorySize", "setSQLEntryHistorySize"),
            new PropertyDescriptor(IPropNames.SQL_SHARE_HISTORY, SessionProperties.class,
              "getSQLShareHistory", "setSQLShareHistory"),
            new PropertyDescriptor(IPropNames.MAIN_TAB_PLACEMENT, SessionProperties.class,
              "getMainTabPlacement", "setMainTabPlacement"),
            new PropertyDescriptor(IPropNames.OBJECT_TAB_PLACEMENT, SessionProperties.class,
              "getObjectTabPlacement", "setObjectTabPlacement"),
            new PropertyDescriptor(IPropNames.SQL_EXECUTION_TAB_PLACEMENT, SessionProperties.class,
              "getSQLExecutionTabPlacement", "setSQLExecutionTabPlacement"),
            new PropertyDescriptor(IPropNames.SQL_RESULTS_TAB_PLACEMENT, SessionProperties.class,
              "getSQLResultsTabPlacement", "setSQLResultsTabPlacement"),
            new PropertyDescriptor(IPropNames.SQL_USE_FETCH_SIZE, SessionProperties.class,
              "getSQLFetchSize", "setSQLFetchSize"),
            new PropertyDescriptor(IPropNames.SQL_FETCH_SIZE, SessionProperties.class,
              "getSQLUseFetchSize", "setSQLUseFetchSize"),
            new PropertyDescriptor(IPropNames.TABLE_CONTENTS_OUTPUT_CLASS_NAME,
              SessionProperties.class, "getTableContentsOutputClassName",
              "setTableContentsOutputClassName"),
            new PropertyDescriptor(IPropNames.KEEP_TABLE_LAYOUT_ON_RERUN,
              SessionProperties.class, "getKeepTableLayoutOnRerun",
              "setKeepTableLayoutOnRerun"),
            new PropertyDescriptor(IPropNames.ABORT_ON_ERROR, SessionProperties.class,
              "getAbortOnError", "setAbortOnError"),
            new PropertyDescriptor(IPropNames.SQL_RESULT_TAB_LIMIT, SessionProperties.class,
              "getSqlResultTabLimit", "setSqlResultTabLimit"),
            new PropertyDescriptor(IPropNames.LIMIT_SQL_RESULT_TABS, SessionProperties.class,
              "getLimitSQLResultTabs", "setLimitSQLResultTabs"),
            new PropertyDescriptor(IPropNames.LOAD_SCHEMAS_CATALOGS, SessionProperties.class,
              "getLoadSchemasCatalogs", "setLoadSchemasCatalogs"),
            new PropertyDescriptor(IPropNames.SHOW_RESULTS_META_DATA, SessionProperties.class,
              "getShowResultsMetaData", "setShowResultsMetaData"),

            new PropertyDescriptor(IPropNames.CATALOG_FILTER_INCLUDE, SessionProperties.class,
              "getCatalogFilterInclude", "setCatalogFilterInclude"),
            new PropertyDescriptor(IPropNames.SCHEMA_FILTER_INCLUDE, SessionProperties.class,
              "getSchemaFilterInclude", "setSchemaFilterInclude"),
            new PropertyDescriptor(IPropNames.OBJECT_FILTER_INCLUDE, SessionProperties.class,
              "getObjectFilterInclude", "setObjectFilterInclude"),
            new PropertyDescriptor(IPropNames.CATALOG_FILTER_EXCLUDE, SessionProperties.class,
              "getCatalogFilterExclude", "setCatalogFilterExclude"),
            new PropertyDescriptor(IPropNames.SCHEMA_FILTER_EXCLUDE, SessionProperties.class,
              "getSchemaFilterExclude", "setSchemaFilterExclude"),
            new PropertyDescriptor(IPropNames.OBJECT_FILTER_EXCLUDE, SessionProperties.class,
              "getObjectFilterExclude", "setObjectFilterExclude"),

            new PropertyDescriptor(IPropNames.LOAD_COLUMNS_IN_BACKGROUND, SessionProperties.class,
              "getLoadColumnsInBackground", "setLoadColumnsInBackground")
            };

      return result;
    }
View Full Code Here


  {
    try
    {
      PropertyDescriptor[] result =
        new PropertyDescriptor[] {
            new PropertyDescriptor(SESSION_PROPERTIES, SquirrelPreferences.class,
              "getSessionProperties", "setSessionProperties"),
            new PropertyDescriptor(MAIN_FRAME_STATE, SquirrelPreferences.class,
              "getMainFrameWindowState", "setMainFrameWindowState"),
            new PropertyDescriptor(SHOW_CONTENTS_WHEN_DRAGGING, SquirrelPreferences.class,
              "getShowContentsWhenDragging", "setShowContentsWhenDragging"),

            new PropertyDescriptor(TABBED_STYLE, SquirrelPreferences.class,
              "getTabbedStyle", "setTabbedStyle"),
            new PropertyDescriptor(USE_SCROLLABLE_TABBED_PANES_FOR_SESSION_TABS, SquirrelPreferences.class,
              "getUseScrollableTabbedPanesForSessionTabs", "setUseScrollableTabbedPanesForSessionTabs"),
            new PropertyDescriptor(SHOW_TABBED_STYLE_HINT, SquirrelPreferences.class,
              "getShowTabbedStyleHint", "setShowTabbedStyleHint"),

            new PropertyDescriptor(LOGIN_TIMEOUT, SquirrelPreferences.class, "getLoginTimeout",
              "setLoginTimeout"),
            new PropertyDescriptor(LARGE_SCRIPT_STMT_COUNT, SquirrelPreferences.class,
              "getLargeScriptStmtCount", "setLargeScriptStmtCount"),
            new PropertyDescriptor(JDBC_DEBUG_TYPE, SquirrelPreferences.class, "getJdbcDebugType",
              "setJdbcDebugType"),
            new PropertyDescriptor(SHOW_MAIN_STATUS_BAR, SquirrelPreferences.class,
              "getShowMainStatusBar", "setShowMainStatusBar"),
            new PropertyDescriptor(SHOW_MAIN_TOOL_BAR, SquirrelPreferences.class, "getShowMainToolBar",
              "setShowMainToolBar"),
            new PropertyDescriptor(SHOW_ALIASES_TOOL_BAR, SquirrelPreferences.class,
              "getShowAliasesToolBar", "setShowAliasesToolBar"),
            new PropertyDescriptor(SHOW_DRIVERS_TOOL_BAR, SquirrelPreferences.class,
              "getShowDriversToolBar", "setShowDriversToolBar"),
            new PropertyDescriptor(SHOW_TOOLTIPS, SquirrelPreferences.class, "getShowToolTips",
              "setShowToolTips"),
            new PropertyDescriptor(SCROLLABLE_TABBED_PANES, SquirrelPreferences.class,
              "getUseScrollableTabbedPanes", "setUseScrollableTabbedPanes"),
            new IndexedPropertyDescriptor(ACTION_KEYS, SquirrelPreferences.class, "getActionKeys",
              "setActionKeys", "getActionKeys", "setActionKeys"),
            new PropertyDescriptor(PROXY, SquirrelPreferences.class, "getProxySettings",
              "setProxySettings"),
            new PropertyDescriptor(UPDATE, SquirrelPreferences.class, "getUpdateSettings",
              "setUpdateSettings"),
            new PropertyDescriptor(SHOW_LOADED_DRIVERS_ONLY, SquirrelPreferences.class,
              "getShowLoadedDriversOnly", "setShowLoadedDriversOnly"),
            new PropertyDescriptor(MAXIMIMIZE_SESSION_SHEET_ON_OPEN, SquirrelPreferences.class,
              "getMaximizeSessionSheetOnOpen", "setMaximizeSessionSheetOnOpen"),
            new PropertyDescriptor(SHOW_COLOR_ICONS_IN_TOOLBAR, SquirrelPreferences.class,
              "getShowColoriconsInToolbar", "setShowColoriconsInToolbar"),
            new PropertyDescriptor(FIRST_RUN, SquirrelPreferences.class, "isFirstRun", "setFirstRun"),
            new PropertyDescriptor(CONFIRM_SESSION_CLOSE, SquirrelPreferences.class,
              "getConfirmSessionClose", "setConfirmSessionClose"),
            new IndexedPropertyDescriptor(PLUGIN_STATUSES, SquirrelPreferences.class,
              "getPluginStatuses", "setPluginStatuses", "getPluginStatus", "setPluginStatus"),
            new PropertyDescriptor(NEW_SESSION_VIEW, SquirrelPreferences.class, "getNewSessionView",
              "setNewSessionView"),
            new PropertyDescriptor(FILE_OPEN_IN_PREVIOUS_DIR, SquirrelPreferences.class,
              "isFileOpenInPreviousDir", "setFileOpenInPreviousDir"),
            new PropertyDescriptor(FILE_OPEN_IN_SPECIFIED_DIR, SquirrelPreferences.class,
              "isFileOpenInSpecifiedDir", "setFileOpenInSpecifiedDir"),
            new PropertyDescriptor(FILE_SPECIFIED_DIR, SquirrelPreferences.class,
              "getFileSpecifiedDir", "setFileSpecifiedDir"),
            new PropertyDescriptor(FILE_PREVIOUS_DIR, SquirrelPreferences.class, "getFilePreviousDir",
              "setFilePreviousDir"),
            new PropertyDescriptor(SHOW_PLUGIN_FILES_IN_SPLASH_SCREEN, SquirrelPreferences.class,
              "getShowPluginFilesInSplashScreen", "setShowPluginFilesInSplashScreen"),
            new PropertyDescriptor(WARN_JRE_JDBC_MISMATCH, SquirrelPreferences.class,
              "getWarnJreJdbcMismatch", "setWarnJreJdbcMismatch"),
            new PropertyDescriptor(WARN_FOR_UNSAVED_FILE_EDITS, SquirrelPreferences.class,
              "getWarnForUnsavedFileEdits", "setWarnForUnsavedFileEdits"),
            new PropertyDescriptor(WARN_FOR_UNSAVED_BUFFER_EDITS, SquirrelPreferences.class,
              "getWarnForUnsavedBufferEdits", "setWarnForUnsavedBufferEdits"),
            new PropertyDescriptor(SHOW_SESSION_STARTUP_TIME_HINT, SquirrelPreferences.class,
              "getShowSessionStartupTimeHint", "setShowSessionStartupTimeHint"),
            new PropertyDescriptor(SHOW_DEBUG_LOG_MESSAGES, SquirrelPreferences.class,
              "getShowDebugLogMessage", "setShowDebugLogMessages"),
            new PropertyDescriptor(SHOW_INFO_LOG_MESSAGES, SquirrelPreferences.class,
              "getShowInfoLogMessages", "setShowInfoLogMessages"),
            new PropertyDescriptor(SHOW_ERROR_LOG_MESSAGES, SquirrelPreferences.class,
              "getShowErrorLogMessages", "setShowErrorLogMessages"),
            new PropertyDescriptor(SAVE_PREFERENCES_IMMEDIATELY, SquirrelPreferences.class,
              "getSavePreferencesImmediately", "setSavePreferencesImmediately"),
            new PropertyDescriptor(SELECT_ON_RIGHT_MOUSE_CLICK, SquirrelPreferences.class,
              "getSelectOnRightMouseClick", "setSelectOnRightMouseClick"),
            new PropertyDescriptor(SHOW_PLEASE_WAIT_DIALOG, SquirrelPreferences.class,
              "getShowPleaseWaitDialog", "setShowPleaseWaitDialog"),
            new PropertyDescriptor(PREFERRED_LOCALE, SquirrelPreferences.class, "getPreferredLocale",
              "setPreferredLocale"), };

      return result;
    }
    catch (IntrospectionException e)
View Full Code Here

  {
    try
    {
      PropertyDescriptor[] result = new PropertyDescriptor[2];
      result[0] =
        new PropertyDescriptor(IPropertyNames.ID, AliasGroup.class, "getIdentifier", "setIdentifier");
      result[0] = new PropertyDescriptor(IPropertyNames.NAME, AliasGroup.class, "getName", "setName");
      return result;
    }
    catch (IntrospectionException e)
    {
      throw new Error(e);
View Full Code Here

    try
    {
      PropertyDescriptor[] s_descr = new PropertyDescriptor[8];

      s_descr[0] =
        new PropertyDescriptor(IPropNames.PLUGIN_CLASS_NAME, PluginInfo.class, "getPluginClassName", null);
      s_descr[1] = new PropertyDescriptor(IPropNames.IS_LOADED, PluginInfo.class, "isLoaded", null);
      s_descr[2] =
        new PropertyDescriptor(IPropNames.INTERNAL_NAME, PluginInfo.class, "getInternalName", null);
      s_descr[3] =
        new PropertyDescriptor(IPropNames.DESCRIPTIVE_NAME, PluginInfo.class, "getDescriptiveName", null);
      s_descr[4] = new PropertyDescriptor(IPropNames.AUTHOR, PluginInfo.class, "getAuthor", null);
      s_descr[5] =
        new PropertyDescriptor(IPropNames.CONTRIBUTORS, PluginInfo.class, "getContributors", null);
      s_descr[6] = new PropertyDescriptor(IPropNames.WEB_SITE, PluginInfo.class, "getWebSite", null);
      s_descr[7] = new PropertyDescriptor(IPropNames.VERSION, PluginInfo.class, "getVersion", null);

      return s_descr;
    }
    catch (IntrospectionException e)
    {
View Full Code Here

  protected void autowire(String beanName, BeanDefinition mbd) {
    Map<String, PropertyDescriptor> properties = unsatisfiedNonSimpleProperties(mbd);
    for (Map.Entry<String, PropertyDescriptor> entry : properties.entrySet()) {
      String propertyName = entry.getKey();
      PropertyDescriptor pd = entry.getValue();
      if (Object.class.equals(pd.getPropertyType())) continue;
      MethodParameter methodParam = BeanUtils.getWriteMethodParameter(pd);
      List<String> beanNames = bindRegistry.getBeanNames(methodParam.getParameterType());
      boolean binded = false;
      if (beanNames.size() == 1) {
        mbd.getPropertyValues().add(propertyName, new RuntimeBeanReference(beanNames.get(0)));
View Full Code Here

  {
    try
    {
      PropertyDescriptor[] result = new PropertyDescriptor[2];
      result[0] =
        new PropertyDescriptor(DimensionWrapper.IPropertyNames.WIDTH, DimensionWrapper.class, "getWidth",
          "setWidth");
      result[1] =
        new PropertyDescriptor(DimensionWrapper.IPropertyNames.HEIGHT, DimensionWrapper.class,
          "getHeight", "setHeight");
      return result;
    }
    catch (IntrospectionException e)
    {
View Full Code Here

  public PropertyDescriptor[] getPropertyDescriptors()
  {
    try {
      PropertyDescriptor[] result = new PropertyDescriptor[2];
      result[0] =
        new PropertyDescriptor(
          PointWrapper.IPropertyNames.X,
          PointWrapper.class,
          "getX",
          "setX");
      result[1] =
        new PropertyDescriptor(
          PointWrapper.IPropertyNames.Y,
          PointWrapper.class,
          "getY",
          "setY");
      return result;
View Full Code Here

  {
    try
    {
      PropertyDescriptor[] result = new PropertyDescriptor[4];
      result[0] =
        new PropertyDescriptor(RectangleWrapper.IPropertyNames.WIDTH, RectangleWrapper.class, "getWidth",
          "setWidth");
      result[1] =
        new PropertyDescriptor(RectangleWrapper.IPropertyNames.HEIGHT, RectangleWrapper.class,
          "getHeight", "setHeight");
      result[2] =
        new PropertyDescriptor(RectangleWrapper.IPropertyNames.X, RectangleWrapper.class, "getX", "setX");
      result[3] =
        new PropertyDescriptor(RectangleWrapper.IPropertyNames.Y, RectangleWrapper.class, "getY", "setY");
      return result;
    }
    catch (IntrospectionException e)
    {
      throw new Error(e);
View Full Code Here

  {
    try
    {
      PropertyDescriptor[] result = new PropertyDescriptor[1];
      result[0] =
        new PropertyDescriptor(StringWrapper.IPropertyNames.STRINGS, StringWrapper.class, "getString",
          "setString");

      return result;
    }
    catch (IntrospectionException e)
View Full Code Here

  {
    try
    {
      PropertyDescriptor[] s_descriptors = new PropertyDescriptor[1];
      s_descriptors[0] =
        new PropertyDescriptor(URLWrapper.IURLWrapperPropertyNames.URL, URLWrapper.class,
          "getExternalForm", "setExternalForm");
      return s_descriptors;
    }
    catch (IntrospectionException e)
    {
View Full Code Here

TOP

Related Classes of java.beans.PropertyDescriptor

Copyright © 2018 www.massapicom. 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.