com.purej.vminspect.html.MBeansInvokeAttributeView Maven / Gradle / Ivy
// Copyright (c), 2013, adopus consulting GmbH Switzerland, all rights reserved.
package com.purej.vminspect.html;
import java.io.IOException;
import com.purej.vminspect.data.MBeanAttribute;
import com.purej.vminspect.data.MBeanData;
import com.purej.vminspect.data.MBeanUtils;
/**
* Displays the view to edit an attribute of an MBean.
*
* @author Stefan Mueller
*/
public class MBeansInvokeAttributeView extends AbstractMBeansView {
private final MBeanData _mbean;
private final MBeanAttribute _attribute;
private final ConfirmState _confirm;
private final String _newValue;
/**
* Creates a new instance of this view.
*/
public MBeansInvokeAttributeView(StringBuilder output, MBeanData mbean, MBeanAttribute attribute, ConfirmState confirmState, String newValue) {
super(output);
_mbean = mbean;
_attribute = attribute;
_confirm = confirmState;
_newValue = newValue;
}
@Override
public void render() throws IOException {
// Write the mbean title:
writeln("" + img("icons/beans-24.png", "MBean") + " MBean: " + htmlEncode(_mbean.getName().getObjectNameString()) + "
");
if (_confirm.isNow()) {
writeln("Please confirm the MBeans attribute change!
");
}
// Write the form with a table:
writeln("");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy