1 /* 2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab 3 * Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET 4 * 5 * Copyright (C) 2012 - 2016 - Scilab Enterprises 6 * 7 * This file is hereby licensed under the terms of the GNU GPL v2.0, 8 * pursuant to article 5.3.4 of the CeCILL v.2.1. 9 * This file was originally licensed under the terms of the CeCILL v2.1, 10 * and continues to be available under such terms. 11 * For more information, see the COPYING file which you should have received 12 * along with this program. 13 * 14 */ 15 16 /*--------------------------------------------------------------------------*/ 17 18 #ifndef __JAVAOPTIONSHELPER_HXX__ 19 #define __JAVAOPTIONSHELPER_HXX__ 20 21 #include "OptionsHelper.hxx" 22 #include "JavaOptionsSetter.hxx" 23 24 #include <jni.h> 25 26 using namespace org_modules_external_objects; 27 28 namespace org_scilab_modules_external_objects_java 29 { 30 31 class JavaOptionsHelper : public OptionsHelper 32 { 33 bool showPrivate; 34 35 public : 36 JavaOptionsHelper()37 JavaOptionsHelper () : OptionsHelper(), showPrivate(false) 38 { 39 setUseScilabIndex(true); 40 } 41 ~JavaOptionsHelper()42 ~JavaOptionsHelper() { } 43 setShowPrivate(const bool _showPrivate)44 void setShowPrivate(const bool _showPrivate) 45 { 46 showPrivate = _showPrivate; 47 } 48 getShowPrivate() const49 bool getShowPrivate() const 50 { 51 return showPrivate; 52 } 53 getSetter(unsigned int type)54 JavaOptionsSetter getSetter(unsigned int type) 55 { 56 return JavaOptionsSetter(*this, type); 57 } 58 }; 59 60 } 61 62 #endif // __JAVAOPTIONSHELPER_HXX__ 63